Skip to content

Sync scheduling by default, with an async opt-in#11771

Merged
acdlite merged 1 commit into
react:masterfrom
acdlite:removesyncfeatureflag
Jan 9, 2018
Merged

Sync scheduling by default, with an async opt-in#11771
acdlite merged 1 commit into
react:masterfrom
acdlite:removesyncfeatureflag

Conversation

@acdlite

@acdlite acdlite commented Dec 4, 2017

Copy link
Copy Markdown
Collaborator

Removes the useSyncScheduling option from the HostConfig, since it's no longer needed. Instead of globally flipping between sync and async, our strategy will be to opt-in specific trees and subtrees.

@sophiebits sophiebits left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So there's no way to enable async for a whole page now?

@acdlite

acdlite commented Dec 4, 2017

Copy link
Copy Markdown
Collaborator Author

So there's no way to enable async for a whole page now?

We could do that by branching here:

https://github.com/acdlite/react/blob/78c69762e6f4e8ff158015e2d8d2426d7b1922db/packages/react-dom/src/client/ReactDOM.js#L1030

Is that something you think we'll want, for debugging purposes?

Removes the `useSyncScheduling` option from the HostConfig, since it's
no longer needed. Instead of globally flipping between sync and async,
our strategy will be to opt-in specific trees and subtrees.
@acdlite acdlite force-pushed the removesyncfeatureflag branch from 78c6976 to f6fc30f Compare December 4, 2017 22:35
@sophiebits

Copy link
Copy Markdown
Collaborator

Maybe. Not a huge deal.

@gaearon gaearon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@acdlite acdlite merged commit 13c5e2b into react:master Jan 9, 2018
ManasJayanth pushed a commit to ManasJayanth/react that referenced this pull request Jan 12, 2018
Removes the `useSyncScheduling` option from the HostConfig, since it's
no longer needed. Instead of globally flipping between sync and async,
our strategy will be to opt-in specific trees and subtrees.
chentsulin added a commit to chentsulin/Making-a-custom-React-renderer that referenced this pull request Jan 18, 2018
Removes the useSyncScheduling option from the HostConfig, since it's no longer needed. See react/react#11771
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants