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

Display "Context updated" as a rerender reason #471

Open
andrewiggins opened this issue Mar 8, 2023 · 0 comments
Open

Display "Context updated" as a rerender reason #471

andrewiggins opened this issue Mar 8, 2023 · 0 comments

Comments

@andrewiggins
Copy link
Member

My understanding is that when a component updates because of a context change (e.g. Context.Consumer rerenders), the devtools will show "Force updated" since internally that is how Preact propagates context changes.

It'd be nice if devtools instead could show something like "Context updated" instead, and if using modern context maybe even which context updated (e.g. show the context ID?)

This might be harder to do in V10 but perhaps in v11 we could have a CONTEXT_UPDATE flag that devtools can read to show the correct render reason?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant