@@ -53,20 +53,20 @@ export default function(stack: Stack, isPrimaryRenderer: boolean) {
53
53
context . _currentRenderer = rendererSigil ;
54
54
}
55
55
} else {
56
- push ( changedBitsCursor , context . _changedBits_secondary , providerFiber ) ;
57
- push ( valueCursor , context . _currentValue_secondary , providerFiber ) ;
56
+ push ( changedBitsCursor , context . _changedBits2 , providerFiber ) ;
57
+ push ( valueCursor , context . _currentValue2 , providerFiber ) ;
58
58
push ( providerCursor , providerFiber , providerFiber ) ;
59
59
60
- context . _currentValue_secondary = providerFiber . pendingProps . value ;
61
- context . _changedBits_secondary = providerFiber . stateNode ;
60
+ context . _currentValue2 = providerFiber . pendingProps . value ;
61
+ context . _changedBits2 = providerFiber . stateNode ;
62
62
if ( __DEV__ ) {
63
63
warning (
64
- context . _currentRenderer_secondary === null ||
65
- context . _currentRenderer_secondary === rendererSigil ,
64
+ context . _currentRenderer2 === null ||
65
+ context . _currentRenderer2 === rendererSigil ,
66
66
'Detected multiple renderers concurrently rendering the ' +
67
67
'same context provider. This is currently unsupported.' ,
68
68
) ;
69
- context . _currentRenderer_secondary = rendererSigil ;
69
+ context . _currentRenderer2 = rendererSigil ;
70
70
}
71
71
}
72
72
}
@@ -84,21 +84,17 @@ export default function(stack: Stack, isPrimaryRenderer: boolean) {
84
84
context . _currentValue = currentValue ;
85
85
context . _changedBits = changedBits ;
86
86
} else {
87
- context . _currentValue_secondary = currentValue ;
88
- context . _changedBits_secondary = changedBits ;
87
+ context . _currentValue2 = currentValue ;
88
+ context . _changedBits2 = changedBits ;
89
89
}
90
90
}
91
91
92
92
function getContextCurrentValue ( context : ReactContext < any > ) : any {
93
- return isPrimaryRenderer
94
- ? context . _currentValue
95
- : context . _currentValue_secondary ;
93
+ return isPrimaryRenderer ? context . _currentValue : context . _currentValue2 ;
96
94
}
97
95
98
96
function getContextChangedBits ( context : ReactContext < any > ) : number {
99
- return isPrimaryRenderer
100
- ? context . _changedBits
101
- : context . _changedBits_secondary ;
97
+ return isPrimaryRenderer ? context . _changedBits : context . _changedBits2 ;
102
98
}
103
99
104
100
return {
0 commit comments