Skip to content

React useContext bug and devtools custom renderer problem.

Notifications You must be signed in to change notification settings

HriBB/react-repro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install

Install and run

yarn
yarn dev

Problem #1: useContext()

If we useContext() inside custom renderer component, the default value is returned, that is the value passed to React.createContext function.

Expected result is the value from the Provider.

Problem #2: react-devtools

Custom renderer components show up on the root level in react-devtools.

Expected result is to see custom renderer show under the right node in the component tree.

About

React useContext bug and devtools custom renderer problem.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published