How does reactivity works in createStore?
Hi,
I'm quite new to SolidJS and Reactivity and I'm not sure how I should implement things.
So, I've created a context with a
Here's my AuthContext: https://gist.github.com/alveshelio/5d04ad7f3bf303b5e823ac2ad60b2a9a
Then in my
I've then created my graphql client like so
With this implementation the
And then
I know that functions in SolidJs only run once and I though that maybe by the time I call
Any help would be greatly appreciated
Thank you
I'm quite new to SolidJS and Reactivity and I'm not sure how I should implement things.
So, I've created a context with a
createStore for an Auth service. Here's my AuthContext: https://gist.github.com/alveshelio/5d04ad7f3bf303b5e823ac2ad60b2a9a
Then in my
index.tsx I'm wrapping the app with the context like soI've then created my graphql client like so
With this implementation the
Authorization is never set in headers and . I've tried thisAnd then
...(token() && { Authorization: Bearer ${token()} }), but this doesn't work either.I know that functions in SolidJs only run once and I though that maybe by the time I call
graphqlClient my state wouldn't be be set yet but I've confirmed that right before calling graphqlClient the id_token is already set.Any help would be greatly appreciated
Thank you
