Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Devtools] Look for a ReactMemoCacheSentinel on state #28831

Merged
merged 1 commit into from
Apr 15, 2024

Commits on Apr 15, 2024

  1. [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).
    gsathya committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    a1e6f9c View commit details
    Browse the repository at this point in the history