mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Portals trigger Suspense boundaries in SSR and only render on client
This commit is contained in:
@@ -908,7 +908,6 @@ class ReactDOMServerRenderer {
|
||||
if (err === REACT_PORTAL_TYPE) {
|
||||
invariant(
|
||||
this.suspenseDepth > 0,
|
||||
// TODO: include component name. This is a bit tricky with current factoring.
|
||||
'Portals must have a fallback UI when being rendered on the server.\n' +
|
||||
'\n' +
|
||||
'Add a <Suspense fallback=...> component higher in the tree to ' +
|
||||
|
||||
Reference in New Issue
Block a user