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