Portals trigger Suspense boundaries in SSR and only render on client

This commit is contained in:
Luna Ruan
2020-02-04 15:46:54 -08:00
parent 29b4d0721c
commit 64f636b437
4 changed files with 95 additions and 25 deletions
+2 -1
View File
@@ -344,5 +344,6 @@
"343": "ReactDOMServer does not yet support scope components.",
"344": "Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.",
"345": "Root did not complete. This is a bug in React.",
"346": "An event responder context was used outside of an event cycle."
"346": "An event responder context was used outside of an event cycle.",
"347": "Portals must have a fallback UI when being rendered on the server.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."
}