mirror of
https://github.com/BarkProductions/barkman.git
synced 2026-06-12 22:11:54 +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
|
// Even if query.data changes, form will be initialized only once
|
||||||
editItemForm.initialize(data);
|
editItemForm.initialize(data);
|
||||||
}
|
}
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [data]);
|
}, [data]);
|
||||||
|
|
||||||
if (isPending) return 'Loading...'
|
if (isPending) return 'Loading...'
|
||||||
|
|||||||
Reference in New Issue
Block a user