Skip to content

Display "Context updated" as a rerender reason #471

Description

@andrewiggins

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions