DEV Community

Cover image for Debug ReactJS Context and useReducer hook with React Context Devtool

Debug ReactJS Context and useReducer hook with React Context Devtool

Deep Patel on June 30, 2020

Release all-new react-context-devtool V2.0 react-context-devtool is devtool for react context and useReducer hook. you can debug useRed...
Collapse
 
jordanpicaso profile image
jordanpicaso

hey man nice job, please add time travel to it just like redux-devtools.

Collapse
 
henrituan profile image
Henri Tuan • Edited

Hi, thanks for the great tool. Is there any way see the internal states/hooks used inside the Context (but not exported in the Context's value) ?

For exemple:

const [queue, setQueue] = useState([]); // <-- I want to debug this state
Context.Provider values={...someOtherStates} // <-- but it's not exported in Context.Provider

Cheers !

Collapse
 
daasrattale profile image
Elattar Saad

Great effort man! I really enjoyed reading this.

Collapse
 
aamnahakram profile image
Aamnah Akram

Looks great. Anyway i can make this work with React Native?

Collapse
 
deeppatel234 profile image
Deep Patel

Thanks, react native support will be added soon.

Collapse
 
henrituan profile image
Henri Tuan

Hi, thanks for the great tool. Is there any way see the internal states/hooks used inside the Context (but not exported in the Context's value) ?

Cheers !