Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix issue with next where staleWhileRevalidate would loop (#1895)

authored by

Jovi De Croock and committed by
GitHub
3eaed7ea dbb52bd2

+9 -1
+5
.changeset/six-walls-jump.md
··· 1 + --- 2 + 'next-urql': patch 3 + --- 4 + 5 + Fix issue where the `renderToString` pass would keep looping due to reexecuting operations on the server
+4 -1
packages/next-urql/src/with-urql-client.ts
··· 55 55 ssr = ssrExchange({ 56 56 initialState: urqlServerState, 57 57 isClient: true, 58 - staleWhileRevalidate: options!.staleWhileRevalidate, 58 + staleWhileRevalidate: 59 + typeof window !== 'undefined' 60 + ? options!.staleWhileRevalidate 61 + : undefined, 59 62 }); 60 63 } else if (!version) { 61 64 ssr.restoreData(urqlServerState);