Open jgoux opened 4 years ago
Hello,
I tried to follow the steps to setup suspenseExchange along with SSR :
const isClient = !!process.browser; const client = createClient({ url: 'http://localhost:1234/graphql', suspense: true, exchanges: [ dedupExchange, isClient && suspenseExchange, ssrExchange({ initialData: isClient ? window.URQL_DATA : undefined, // This will need to be passed explicitly to ssrExchange: isClient: !!isClient }) cacheExchange, fetchExchange, ].filter(Boolean), });
It seems like initialData is now initialState? Even by changing it I'm still not sure about what to do next.
initialData
initialState
Would it be possible to setup a minimal example with all these features?
Hello,
I tried to follow the steps to setup suspenseExchange along with SSR :
It seems like
initialData
is nowinitialState
? Even by changing it I'm still not sure about what to do next.Would it be possible to setup a minimal example with all these features?