Closed TacticCoder closed 5 years ago
Solve that, for those who may get in to it at the future, I just needed to add defaults to the withClientState() and use the then() promise while loading the cache,
persistCache({
cache,
storage: window.localStorage,
maxSize: false, // set to unlimited (default is 1MB https://github.com/apollographql/apollo-cache-persist)
debug: true, // enables console logging
}).then(() => {
// Continue setting up Apollo as usual.
ReactDOM.render( ......
While executing this query above I get an warning: "Missing field session in {}" Search on stack and slack but now helpful one.