-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Remove usage of useEvent with useCallback
The `useEvent` function was being called during rendering, which throws an error when React's Strict Mode is enabled. This type of usage is incorrect because it makes the rendering result non-determinisitic. See reactjs/rfcs#220 (comment)
- Loading branch information
1 parent
94a0578
commit c4753fc
Showing
1 changed file
with
42 additions
and
40 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