Skip to content

Devtools: Allow editing context #18413

@eps1lon

Description

@eps1lon

React version: 16.13 and `0.0.0-experimental-aae83a4b9

Steps To Reproduce

  1. Goto https://codesandbox.io/s/xenodochial-field-rfdjz
  2. Try editing value of MessageListContext.Provider

Link to code example: https://codesandbox.io/s/xenodochial-field-rfdjz

The current behavior

Context from createContext can't be edited in the current devtools (provider, consumer, hooks)

The expected behavior

Context value should be editable. I already proposed an implementation for Provider and Consumer.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions