Skip to content

Enable opt-in to async mode - #10535

Merged
acdlite merged 1 commit into
react:masterfrom
acdlite:enableasyncsubtreeapi
Aug 24, 2017
Merged

Enable opt-in to async mode#10535
acdlite merged 1 commit into
react:masterfrom
acdlite:enableasyncsubtreeapi

Conversation

@acdlite

@acdlite acdlite commented Aug 24, 2017

Copy link
Copy Markdown
Collaborator

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 at Facebook as a fail-safe so 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, so people can start experimenting with async before it's stable.

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.
@acdlite
acdlite merged commit 83393bc into react:master Aug 24, 2017
@acdlite
acdlite deleted the enableasyncsubtreeapi branch August 24, 2017 17:54
mrizwanashiq pushed a commit to mrizwanashiq/react that referenced this pull request Jun 25, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants