-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
enhancementNew feature or requestNew feature or request
Description
original issue
test which explains everything
https://github.com/facebook/react/pull/16945/files#diff-ab371863932cd2e8f0ba14ff2eaab380R687
Mostly for your information.
The last React version which will work out of the box with the provided examples API is 16.9. After that one has to use <Suspense fallback={undefined}> during the hydration, or it will fail.
In other words this moment might be changed a little - renderFallback should return undefined during hydration
react-loosely-lazy/src/suspense/component.tsx
Lines 116 to 118 in f3f19d0
| <Suspense fallback={this.renderFallback(false)}> | |
| {this.props.children} | |
| </Suspense> |
Questions yet to answer
- can one render Suspense first time without
fallbackand add it usinguseEffecta render tick later?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request