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
In the cache.tsx I have a reactive variable that stores the user data. The typePolicy should return the currentUserVar() value. But I keep getting a undefined. I'm probably mixing up several things to get this working.
The text was updated successfully, but these errors were encountered:
apollo3-cache-perist doesn't support reactive variables (see discussion in #361).
My guess is that the typePolicy is overriding the cached value with the reactive variable. You might find few approaches on persisting reactive variables in the linked issue.
PS: I've noticed you don't have the localstorage wrapped in wrapper (see readme):
I'm trying to grab some data on my logged in user with
apollo3-cache-persist
.In the
cache.tsx
I have a reactive variable that stores the user data. The typePolicy should return thecurrentUserVar()
value. But I keep getting aundefined
. I'm probably mixing up several things to get this working.The text was updated successfully, but these errors were encountered: