Skip to content

Commit 2013ad2

Browse files
authored
Support sharing context objects between concurrent renderers (#12779)
* Support concurrent primary and secondary renderers. As a workaround to support multiple concurrent renderers, we categorize some renderers as primary and others as secondary. We only expect there to be two concurrent renderers at most: React Native (primary) and Fabric (secondary); React DOM (primary) and React ART (secondary). Secondary renderers store their context values on separate fields. * Add back concurrent renderer warning Only warn for two concurrent primary or two concurrent secondary renderers. * Change "_secondary" suffix to "2" #EveryBitCounts
1 parent 760262e commit 2013ad2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ReactTestRenderer.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ const TestRenderer = ReactFiberReconciler({
226226
// Even after the reconciler has initialized and read host config values.
227227
now: () => nowImplementation(),
228228

229+
isPrimaryRenderer: true,
230+
229231
mutation: {
230232
commitUpdate(
231233
instance: Instance,

0 commit comments

Comments
 (0)