Replies: 2 comments 4 replies
-
Looking into this a bit, particularly Relay + React 18 Streaming in Next.js to take advantage of SSR Suspense. The Couple solutions I can think of here:
There may also be other issues beyond this, but can't make it further until this is solved. |
Beta Was this translation helpful? Give feedback.
-
Noting another limitation - Refetches data client side. Need to figure out how to hydrate Relay cache client side with streaming. This is called out here: https://nextjs.org/docs/advanced-features/react-18/streaming#data-fetching It's an upstream issue, Suspense does not yet support a client cache hydration mechanism: reactwg/react-18#22
|
Beta Was this translation helpful? Give feedback.
-
So upon watching this: https://www.youtube.com/watch?v=lhVGdErZuN4
Definitely excited about the opportunities with React 18, service side components and components having their own data providers. Possibilities are endless so to speak.
Problem is, when I spent some time trying to get relay to work with NextJS it wasn't easy. Here's the hurdles that I faced as a noob to the whole graphql stack.
With this in mind, does Vercel have any future plans to make this much more simpler?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions