-
Notifications
You must be signed in to change notification settings - Fork 47k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove concurrent apis from stable #17088
Remove concurrent apis from stable #17088
Conversation
ReactDOM: size: -0.0%, gzip: -0.1% Details of bundled changes.Comparing: a8c6a1b...38e5bb7 react-dom
|
@@ -643,7 +624,7 @@ type RootOptions = { | |||
}, | |||
}; | |||
|
|||
function createRoot( | |||
export function createRoot( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't do exports here, right? Why would you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's so I can add a prefixed version to the Facebook build:
react/packages/react-dom/src/client/ReactDOMFB.js
Lines 36 to 37 in 09d07e2
ReactDOM.unstable_createRoot = createRoot; | |
ReactDOM.unstable_createSyncRoot = createSyncRoot; |
I forgot this module is the public interface... I think it happens to work because only the .default
export is reexported in the Common JS bundle, but maybe a better approach is to move the createRoot
and other implementation stuff into a separate module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok after talking offline, I've removed this. www will use the experimental builds.
653ffa7
to
8fbca06
Compare
For local development, you usually want experiments enabled. Unless the release channel is set with an environment variable, tests will run with __EXPERIMENTAL__ set to `true`.
Those who want to try concurrent mode should use the experimental builds instead. I've left the `unstable_` prefixed APIs in the Facebook build so we can continue experimenting with them internally without blessing them for widespread use.
ccf2758
to
dca8802
Compare
Instead we'll use the experimental builds when syncing to www.
Those who want to try concurrent mode should use the experimental builds instead.
I also turned on the Suspense server renderer and selective hydration in the experimental build.