(providerFiber, nextValue)
| 15597 | } |
| 15598 | } |
| 15599 | function pushProvider(providerFiber, nextValue) { |
| 15600 | var context = providerFiber.type._context; |
| 15601 | |
| 15602 | { |
| 15603 | push(valueCursor, context._currentValue, providerFiber); |
| 15604 | context._currentValue = nextValue; |
| 15605 | |
| 15606 | { |
| 15607 | if (context._currentRenderer !== undefined && context._currentRenderer !== null && context._currentRenderer !== rendererSigil) { |
| 15608 | error('Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.'); |
| 15609 | } |
| 15610 | |
| 15611 | context._currentRenderer = rendererSigil; |
| 15612 | } |
| 15613 | } |
| 15614 | } |
| 15615 | function popProvider(providerFiber) { |
| 15616 | var currentValue = valueCursor.current; |
| 15617 | pop(valueCursor, providerFiber); |
no test coverage detected