-
Notifications
You must be signed in to change notification settings - Fork 45.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Warn against state updates from useEffect destroy functions (#18307)
Don't warn about unmounted state updates from within passive destroy function * Fixed test conditional. (It broke after recent variant refactor.) * Changed warning wording for setState from within useEffect destroy callback
- Loading branch information
Brian Vaughn
committed
Mar 13, 2020
1 parent
0705b72
commit 730389b
Showing
2 changed files
with
37 additions
and
20 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