-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Repositories: fix lint warning react-hooks/exhaustive-deps with addin…
…g useCallback hook this commit fix the exhaustive-deps by adding the useCallback hook. after adding the missing dependencies to the useEffect, I fix this problem -gcaThe 'initializeRepositories' function makes the dependencies of useMemo Hook (at line 256) change on every render. Move it inside the useMemo callback. Alternatively, wrap the definition of 'initializeRepositories' in its own useCallback() Hook react-hooks/exhaustive-deps
- Loading branch information
Showing
2 changed files
with
45 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters