SolidJSS
SolidJS3y ago
14 replies
Obamax

Context not working as expected

Hi everyone. I’ve got a strange behaviour in my project. I want to use my context as a global state manager so when I pass a function which has my useContext function in it to an addEventListener, when the addEventListener is fired I don’t have the correct value of the store contained in my context but only the default value.
Was this page helpful?