Fix react-hooks/exhaustive-deps error on useProperFocus.tsx (#4259)

* Fix react-hooks/exhaustive-deps error on useProperFocus.tsx

* Remove comment in eslint config

* Release notes
This commit is contained in:
Joel Jeremy Marquez
2025-02-19 07:06:17 -08:00
committed by GitHub
parent def06693ab
commit a085945898
3 changed files with 7 additions and 2 deletions

View File

@@ -796,7 +796,6 @@ export default [
'packages/desktop-client/src/components/transactions/TransactionsTable.test.jsx',
// 'packages/desktop-client/src/hooks/useAccounts.ts',
'packages/desktop-client/src/hooks/useCategories.ts',
'packages/desktop-client/src/hooks/useProperFocus.tsx',
],
rules: {

View File

@@ -98,5 +98,5 @@ export function useProperFocus(
}
prevShouldFocus.current = shouldFocus;
}, [shouldFocus]);
}, [context, ref, shouldFocus]);
}

View File

@@ -0,0 +1,6 @@
---
category: Maintenance
authors: [joel-jeremy]
---
Fix react-hooks/exhaustive-deps error on useProperFocus.tsx