dillon1000/react

Commit

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.
Browse files
Changed paths2 files
First-parent comparison
M src/renderers/dom/fiber/__tests__/ReactDOMFiberAsync-test.js ModifiedM src/renderers/shared/utils/ReactFeatureFlags.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…