Replies: 2 comments 2 replies
-
i also started getting this error recently! previously, i had dehydrate and hydrate implemented this way: dehydrate() {
return { apolloClient: JSON.stringify(apolloClient.extract()).replace(/</g, '\\u003c') };
},
hydrate(dehydrated) {
apolloClient.restore(JSON.parse(dehydrated.apolloClient));
}, when i was on
things were working, but then i upgraded to the latest versions of pnpm and those packages and started getting this error in the browser: Uncaught Error: Invariant failed: Expected to find a dehydrated data on window.TSR_SSR.dehydrated... but we did not. Please file an issue! trying to track down what changed |
Beta Was this translation helpful? Give feedback.
1 reply
-
apollo is currently getting a first class integration cc @phryneas |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I followed this docs: https://tanstack.com/router/latest/docs/framework/react/guide/external-data-loading#ssr-dehydrationhydration to hydrate/dehydrate.
The problem is that dehydrate is never called on server side and on client side I got message that TSR_SSR is not defined. Did I miss something or is there a bug or it's not implemented yet?
Beta Was this translation helpful? Give feedback.
All reactions