daily-code
daily-code copied to clipboard
fix : Issue#754
PR Fixes:
- 1 Memoized the Fuse instance to avoid recreating it on every render.
- 2 Updated the dependency array of the
fetchSearchResults()function to ensure it reacts to the correct changes.
Resolves #754
Checklist before requesting a review
- ✅ I have performed a self-review of my code
- ✅ I assure there is no similar/duplicate pull request regarding same issue