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 should properly report re-renders due to (use)context changes #22746

Merged
merged 1 commit into from
Nov 11, 2021

Commits on Nov 11, 2021

  1. DevTools should properly report re-renders due to (use)context changes

    Note that this only fixes things for newer versions of React (e.g. 18 alpha). Older versions will remain broken because there's not a good way to read the most recent context value for a location in the tree after render has completed. This is because React maintains a stack of context values during render, but by the time DevTools is called– render has finished and the stack is empty.
    Brian Vaughn committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    4db3dc4 View commit details
    Browse the repository at this point in the history