Skip to content
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

Enable concurrency-mode #435

Closed
wants to merge 1 commit into from
Closed

Enable concurrency-mode #435

wants to merge 1 commit into from

Conversation

tjlav5
Copy link
Contributor

@tjlav5 tjlav5 commented Nov 25, 2020

Switch to react/experimental and bootstrap with unstable_createRoot

Switch to react/experimental
Copy link
Member

@yuchenshi yuchenshi left a comment

Choose a reason for hiding this comment

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

LGTM but please switch to blocking mode. Also, let's set up a branch for these changes -- we have a few bug fixes to the stable branch that I want to get out before going full on experimental

@@ -48,7 +48,7 @@ const RouterWithInit = () => {
);
};

ReactDOM.render(
ReactDOM.unstable_createRoot(document.getElementById('root')!).render(
Copy link
Member

Choose a reason for hiding this comment

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

Please only enable blocking mode for now.

@jhuleatt
Copy link
Contributor

jhuleatt commented Dec 2, 2020

Heads up that ReactFire v3 will support apps that don't use concurrent mode, which means you can stick to a stable build of React. More detail on the API changes that enable this here: FirebaseExtended/reactfire#255 (comment)

@yuchenshi
Copy link
Member

I guess we're already using Suspense for data fetching so switching to at least blocking mode is inevitable. In retrospect, in an alternative world where we had ReactFire v3 a few months ago, we could have decided not to hop on the Suspense train (pun intended). Closing in favor of #440.

@yuchenshi yuchenshi closed this Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants