Rename createSyncRoot to createBlockingRoot#17165
Conversation
|
Can we consider passing an option to |
|
I'm just not convinced "blocking" is a thing people will intuitively understand and I'm worried the additional terminology is more confusing than it's worth. |
|
Concurrent Mode with "disabled concurrent rendering" isn't that much easier to explain IMO though — and we need to refer to this concept somehow when discussing adoption strategy. |
|
But like what is the difference between "blocking" and "concurrent"? Are they mutually exclusive? Can you have one without the other? Technically legacy is also blocking. Why not |
|
To clarify, I have two separate objections:
|
|
OTOH I don't think it's any worse than what we already have, so I don't mind if we merge this for now. I would prefer to bikeshed it more before the actual release, though. |
|
There are a number of considerations for an options object:
That said, these arguments mostly apply to hydration too and we already said we didn’t want a combinatorial explosion. |
|
I mostly suggested it because Sync looked bad in the column. I’m all for bikeshedding this further before release. However we should decide the name of the column now “Legacy Mode”, “??? Mode”, “Concurrent Mode”. |
|
What I like about "legacy" is that describes the target use case as opposed to the technical characteristics. Maybe we could do the same here. "Compatibility Mode"? |
|
Tests failing. |
|
Oops. Pushed |
- **createSyncRoot** was renamed to **createSyncRoot** in [#17165](facebook/react#17165) - **unstable_** is not necessary in experimental releases. See [#17146](facebook/react#17146) and [#17108](facebook/react#17108)
- **createSyncRoot** was renamed to **createSyncRoot** in [#17165](facebook/react#17165) - **unstable_** is not necessary in experimental releases. See [#17146](facebook/react#17146) and [#17108](facebook/react#17108)
"Sync" is easy to confuse with the Legacy mode. It also might sound too positive.
While I'm renaming
createSyncRoottocreateBlockingRoot, I also did some find-and-replace in comments and internal naming. Let's standardize on: