mirror of
https://github.com/BarkProductions/barkman.git
synced 2026-06-13 06:11:55 +00:00
Fix missing dependency comment in EditItem useEffect
Added a comment to acknowledge the intentional omission of dependencies in the useEffect hook. This ensures clarity for future contributors and aligns with ESLint rules.
This commit is contained in:
@@ -69,6 +69,7 @@ function EditItem() {
|
||||
// Even if query.data changes, form will be initialized only once
|
||||
editItemForm.initialize(data);
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [data]);
|
||||
|
||||
if (isPending) return 'Loading...'
|
||||
|
||||
Reference in New Issue
Block a user