-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return stable references from useMiniSearch() hook (#31)
* test(useMiniSearch): add POC test - This new test with minimal changes to the usual setup demonstrates how bugs can be introduced in a complex React project due to the useMiniSearch() hook returning newly created util functions instead of stable references after each render. * feat(useMiniSearch): return stable fn references * feat(useOnMount): remove eslint warning ignore and add useEffect cleanup instead * Fix utils after merge Co-authored-by: neezurft <contact@embeddednotes.com> Co-authored-by: Luca Ongaro <mail@lucaongaro.eu>
- Loading branch information
1 parent
5182350
commit c846552
Showing
2 changed files
with
134 additions
and
95 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