You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.
Now, if I used my store to keep the logged the authentication token, the store autosaved to localstorage. But would not be hydrated at the time of Apollo client creation. That basically means that it, since the store is hydrated later.
Hi @leebenson ,
Thanks for ton, for this amazing boilerplate. For sure have saved me tons of hours. 👍
Wanted to discuss a challenge that I am facing. As per https://github.com/leebenson/reactql/blob/master/src/entry/client.tsx#L63
Rehydration of the state from the local storage occurs after the apolloClient is already created at line https://github.com/leebenson/reactql/blob/master/src/entry/client.tsx#L44.
Now, if I used my store to keep the logged the authentication token, the store autosaved to localstorage. But would not be hydrated at the time of Apollo client creation. That basically means that it, since the store is hydrated later.
Now, if I move line https://github.com/leebenson/reactql/blob/master/src/entry/client.tsx#L63
to https://github.com/leebenson/reactql/blob/master/src/entry/client.tsx#L42.
So, hydrate before creating the client. I get this error in client console.
Please let me know if you have additional questions or if I can help any how to fix this
The text was updated successfully, but these errors were encountered: