You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Temporarily treat Offscreen as fragment during SSR
Offscreen isn't as implemented for server rendering yet. Currently Fizz
doesn't even recognize the component type, so it errors and reverts the
nearest Suspense boundary to client rendering.
This commit doesn't fully implement Offscreen — all it does is add the
element type to Fizz so that it doesn't deopt its surroundings.
When the tree is visible, it acts like a fragment, with no caveats. When
the tree is hidden, Fizz will fail to hide the nearest HTML nodes. Then
during hydration the hidden tree gets deleted.
The eventual, desired behavior is for Fizz to treat Offscreen as another
kind of hydration boundary, similar to how Suspense works during
hydration.
0 commit comments