React 18 and streaming SSR #1874
Replies: 2 comments 13 replies
-
This is a complicated topic and I don't have a lot of answers myself. From what I've read, I don't think streaming SSR will really work with Redux. The basic pattern of rehydration is the same as it's always been: serialize the Redux state on the server, load it when you create the store on the client. If you're using RTK Query, we have specific guidelines on how to do SSR with Next and rehydration. For React-Redux v8, there's a new Beyond that, I'd suggest reading these threads:
and I'll poke @Ephem to see if he has any further thoughts (although I see he commented in the React Query thread already) |
Beta Was this translation helpful? Give feedback.
-
Is there an example repo showing how to use the new serverState prop with SSR (in react-redux with react 18 in general)? @markerikson: " From what I've read, I don't think streaming SSR will really work with Redux. " |
Beta Was this translation helpful? Give feedback.
-
Hi!
As you know, React 18 has the brand new SSR rendering type — streaming with fully suspense support. So, the questions are:
Do you have any ideas, how to implement it with streaming SSR?
There is a similar discussion in react-query repo — TanStack/query#2942
Beta Was this translation helpful? Give feedback.
All reactions