-
Notifications
You must be signed in to change notification settings - Fork 47k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Devtools] Look for a ReactMemoCacheSentinel on state
The polyfill doesn't have access to the fiber, and it simply uses state, which makes it not work with the devtools. With this PR, devtools will look for this special sentinel on very first hook's state for this sentinel and display the Forget badge if present. The poylfill will add this sentinel to it's state (the cache array).
- Loading branch information
Showing
2 changed files
with
11 additions
and
2 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