DEV Community 👩‍💻👨‍💻

Discussion on: variable passed through context does not change in the child when changing in the parent and vice versa

dieldore profile image
Dieldore Author • Edited on

No mistakes
If i write

this.state = {
      id: '123',

then it will work.
this attaches correctly. But setState or timers do not change the object that is inside UserContext.Consumer