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
The InMemoryCache class resides in a different package from the Apollo Client core. Make sure the apollo-cache-inmemory package is installed in your project
I think this is related to this issue, @appolo/client removed client.writeData in version 3.0.0-beta.48 so the signIn code is no longer working.
I tried this workaround
Activity
ascott1 commentedon May 4, 2020
For anyone who comes across this issue, we discuss it in more detail here: https://spectrum.chat/jseverywhere/general/chapter-15-web-authentication-and-state-issue-with-cache-writedata~998a84e5-9caa-4dab-bccb-d97fea79c1b1
The tl;dr summary is:
If you are using this repo as a starter project as shown in the book, you should not experience this issue.
However, when using the latest version of Apollo the two packages need to be installed separately:
Otherwise, the code should be the same.
Hopefully that helps!
cip123 commentedon May 15, 2020
I think this is related to this issue,
@appolo/clientremovedclient.writeDatain version3.0.0-beta.48so thesignIncode is no longer working.I tried this workaround
but now the problem is that
in
PrivateRouteis returning stale data after the succesful login redirect so I need to log in twice