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
Setting cache: new InMemoryCache().restore(initialState || {}) results in Error: Circular structure in "getInitialProps" result of page "/". https://err.sh/zeit/next.js/circular-structure
So I had to remove it from my withApollo setup. What does it do anyway? I've been googling and saw other people run into this with no solution. I'll close this issue if it's not relevant.
The text was updated successfully, but these errors were encountered:
one of the objects in the result of https://github.com/lfades/next-with-apollo/blob/master/src/withApollo.tsx#L95 has circular references (almost definitely the apollo client?) (not the apollo client, since the serialization is stubbed out here which will ignore server->client serialization) which next will complain about, since that return object has to be serialized, and circular references are not kosher in JSON serialization.
not sure why removing the .restore() line would stop that error, though, since that object would be serialized and sent over regardless?
Setting
cache: new InMemoryCache().restore(initialState || {})
results inError: Circular structure in "getInitialProps" result of page "/". https://err.sh/zeit/next.js/circular-structure
So I had to remove it from my
withApollo
setup. What does it do anyway? I've been googling and saw other people run into this with no solution. I'll close this issue if it's not relevant.The text was updated successfully, but these errors were encountered: