Skip to content

[Fizz] Switch the isPrimaryRender flag based on the stream config#21357

Merged
sebmarkbage merged 1 commit into
react:masterfrom
sebmarkbage:fizzsecondaryprimary
Apr 27, 2021
Merged

[Fizz] Switch the isPrimaryRender flag based on the stream config#21357
sebmarkbage merged 1 commit into
react:masterfrom
sebmarkbage:fizzsecondaryprimary

Conversation

@sebmarkbage

Copy link
Copy Markdown
Contributor

It's possible for Fizz and Fiber to co-exist for example. If they both end up using the same context field then that can clash.

It's also possible for e.g. DOM and ART to co-exist on the server.

Or Legacy Fizz DOM and Modern Fizz DOM.

Instead of protecting against every possible clash, I just took the most common one. E.g. renderToString clashing with either Fiber or Modern Fizz.

I flip it in the legacy stream config so that renderToString use the secondary Context fields. #21276

It's possible for Fizz and Fiber to co-exist for example. If they both
end up using the same context field then that can clash.

It's also possible for e.g. DOM and ART to co-exist on the server.

Or Legacy Fizz DOM and Modern Fizz DOM.

Instead of protecting against every possible clash, I just took the most
common one. E.g. renderToString clashing with either Fiber or Modern Fizz.

I flip it in the legacy stream config.
@sebmarkbage
sebmarkbage requested a review from gaearon April 27, 2021 02:07
@facebook-github-bot facebook-github-bot added React Core Team Opened by a member of the React Core Team CLA Signed labels Apr 27, 2021
@sebmarkbage
sebmarkbage merged commit 4a8deb0 into react:master Apr 27, 2021
@eps1lon eps1lon mentioned this pull request Apr 27, 2021
1 task
facebook-github-bot pushed a commit to react/react-native that referenced this pull request Apr 28, 2021
Summary:
This sync includes the following changes:
- **[9a25916](react/react@9a2591681 )**: Fix export //<Sebastian Markbage>//
- **[4a8deb0](react/react@4a8deb083 )**: Switch the isPrimaryRender flag based on the stream config ([#21357](react/react#21357)) //<Sebastian Markbåge>//
- **[bd4f056](react/react@bd4f056a3 )**: [Fizz] Implement lazy components and nodes ([#21355](react/react#21355)) //<Sebastian Markbåge>//
- **[fc33f12](react/react@fc33f12bd )**: Remove unstable scheduler/tracing API ([#20037](react/react#20037)) //<Brian Vaughn>//
- **[7212383](react/react@721238394 )**: Enable strict effects mode for React Native Facebook builds ([#21354](react/react#21354)) //<Brian Vaughn>//
- **[4874042](react/react@48740429b )**: Expiration: Do nothing except disable time slicing ([#21345](react/react#21345)) //<Andrew Clark>//
- **[0f5ebf3](react/react@0f5ebf366 )**: Delete unreferenced type ([#21343](react/react#21343)) //<Andrew Clark>//
- **[9cd52b2](react/react@9cd52b27f )**: Restore context after an error happens ([#21341](react/react#21341)) //<Sebastian Markbåge>//
- **[ad09175](react/react@ad091759a )**: Revert "Emit reactroot attribute on the first element we discover ([#21154](react/react#21154))" ([#21340](react/react#21340)) //<Sebastian Markbåge>//
- **[709f948](react/react@709f94841 )**: [Fizz] Add FB specific streaming API and build ([#21337](react/react#21337)) //<Sebastian Markbåge>//
- **[e8cdce4](react/react@e8cdce40d )**: Don't flush sync at end of discreteUpdates ([#21327](react/react#21327)) //<Andrew Clark>//
- **[a155860](react/react@a15586001 )**: Fix: Don't flush discrete at end of batchedUpdates ([#21229](react/react#21229)) //<Andrew Clark>//
- **[89847bf](react/react@89847bf6e )**: Continuous updates should interrupt transitions ([#21323](react/react#21323)) //<Andrew Clark>//
- **[ef37d55](react/react@ef37d55b6 )**: Use performConcurrentWorkOnRoot for "sync default" ([#21322](react/react#21322)) //<Andrew Clark>//

Changelog:
[General][Changed] - React Native sync for revisions a632f7d...2a7bb41

jest_e2e[run_all_tests]

Reviewed By: JoshuaGross

Differential Revision: D28063006

fbshipit-source-id: 7e3535f80961706863b6c2188ee44b5796b2f000
mrizwanashiq pushed a commit to mrizwanashiq/react that referenced this pull request Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants