Obamax
Obamax
SSolidJS
Created by Obamax on 5/25/2023 in #support
Context not working as expected
Is this approach correct ?
15 replies
SSolidJS
Created by Obamax on 5/25/2023 in #support
Context not working as expected
I use the Context as a stage manager for my auth part so with a store with actually only the accessToken and some function like Login Logout. I was inspired by how Pinia work in VueJS. And then I wrap my whole application with that context and then can use wherever I need to my useAuth which allow me to retrieve the reactive data of my AuthContext’s store
15 replies
SSolidJS
Created by Obamax on 5/25/2023 in #support
Context not working as expected
So get the value before and pass it as parameter of this function
15 replies