Questions tagged [createcontext]
46 questions
0
votes
1 answer
Update useContext every second
I have a variable "second", which needs to be updated every second. and it was used by multiple components so i placed it in context.
Only for the first time i see correct value and from the next iteration it is coming as undefined.
any adviceā¦

upog
- 4,965
- 8
- 42
- 81