From 57d6b8ae8e9f169eb4f779fe58fb0a93da2614cf Mon Sep 17 00:00:00 2001 From: Drew Rautenberg Date: Thu, 23 Jan 2025 11:13:16 -0600 Subject: [PATCH] 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. --- barkmanui/src/features/inventory/EditItem.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/barkmanui/src/features/inventory/EditItem.tsx b/barkmanui/src/features/inventory/EditItem.tsx index 6bf33b3..97fb7e7 100644 --- a/barkmanui/src/features/inventory/EditItem.tsx +++ b/barkmanui/src/features/inventory/EditItem.tsx @@ -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...'