Suspending inside a hidden tree should not cause fallbacks to appear (#24699)

* [FORKED] Hidden trees should capture Suspense

If something suspends inside a hidden tree, it should not affect
anything in the visible part of the UI. This means that Offscreen acts
like a Suspense boundary whenever it's in its hidden state.

* Add previous commit to forked revisions
This commit is contained in:
Andrew Clark
2022-07-05 17:51:27 -04:00
committed by GitHub
parent c1f5884ffe
commit 82e9e99098
15 changed files with 671 additions and 121 deletions
+3 -2
View File
@@ -419,5 +419,6 @@
"431": "React elements are not allowed in ServerContext",
"432": "The render was aborted by the server without a reason.",
"433": "useId can only be used while React is rendering",
"434": "`dangerouslySetInnerHTML` does not make sense on <title>."
}
"434": "`dangerouslySetInnerHTML` does not make sense on <title>.",
"435": "Unexpected Suspense handler tag (%s). This is a bug in React."
}