If the server has already rendered some of the data, the fallback does not need to be rendered again, just like this example.
@gaearon @acdlite
@janryWang Not sure if this is the right example. Looks like Suspense doesn't support SSR yet.
I'm stuck at this:
ReactDOMServer does not yet support Suspense.
Invariant Violation: ReactDOMServer does not yet support Suspense.
at invariant (/nyc/node_modules/react-dom/cjs/react-dom-server.node.development.js:58:15)
Suspense isn't supported by server rendering yet. We're starting work on a new fully-featured server renderer.
Oh well, now I know what "No supported" mean. It throws a error in server side 馃
I thought ReactDomServer just ignore the suspense component.
Suspense isn't supported by server rendering yet. We're starting work on a new fully-featured server renderer.
Hello @gaearon , I've read a lot about Suspense, which is awesome, really really want to use it :) I would like to use Suspense in a nextjs project (which does ssr), was wondering if it was possible yet, this thread is dated 2018, so maybe now it's possible ? is it ? thanks a lot if you reply :) have a great one !
Most helpful comment
Suspense isn't supported by server rendering yet. We're starting work on a new fully-featured server renderer.