You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?The text was updated successfully, but these errors were encountered: