File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
packages/react-reconciler/src Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -133,10 +133,14 @@ export function popProvider(
133
133
pop ( valueCursor , providerFiber ) ;
134
134
if ( isPrimaryRenderer ) {
135
135
context . _currentValue = currentValue ;
136
- context . _currentRenderer = null ;
136
+ if ( __DEV__ ) {
137
+ context . _currentRenderer = null ;
138
+ }
137
139
} else {
138
140
context . _currentValue2 = currentValue ;
139
- context . _currentRenderer2 = null ;
141
+ if ( __DEV__ ) {
142
+ context . _currentRenderer2 = null ;
143
+ }
140
144
}
141
145
}
142
146
Original file line number Diff line number Diff line change @@ -133,10 +133,14 @@ export function popProvider(
133
133
pop ( valueCursor , providerFiber ) ;
134
134
if ( isPrimaryRenderer ) {
135
135
context . _currentValue = currentValue ;
136
- context . _currentRenderer = null ;
136
+ if ( __DEV__ ) {
137
+ context . _currentRenderer = null ;
138
+ }
137
139
} else {
138
140
context . _currentValue2 = currentValue ;
139
- context . _currentRenderer2 = null ;
141
+ if ( __DEV__ ) {
142
+ context . _currentRenderer2 = null ;
143
+ }
140
144
}
141
145
}
142
146
You can’t perform that action at this time.
0 commit comments