dillon1000/react
Commit
Browse files Enable opt-in to async mode (#10535)
When the feature flag enableAsyncSubtreeAPI is true, React.unstable_AsyncComponent creates an async subtree. When it's false, it behaves like a normal, sync React component. We use this flag in www as a fail safe so that if we ship an async bug, we can set the flag to false and revert back to sync mode. For open source, we should enable the feature flag.
Changed paths2 files
First-parent comparisonsrc/renderers/dom/fiber/__tests__/ReactDOMFiberAsync-test.js ModifiedM src/renderers/shared/utils/ReactFeatureFlags.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…