(providerFiber, nextValue)
| 12037 | } |
| 12038 | } |
| 12039 | function pushProvider(providerFiber, nextValue) { |
| 12040 | var context = providerFiber.type._context; |
| 12041 | |
| 12042 | { |
| 12043 | push(valueCursor, context._currentValue, providerFiber); |
| 12044 | context._currentValue = nextValue; |
| 12045 | |
| 12046 | { |
| 12047 | if (context._currentRenderer !== undefined && context._currentRenderer !== null && context._currentRenderer !== rendererSigil) { |
| 12048 | error('Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.'); |
| 12049 | } |
| 12050 | |
| 12051 | context._currentRenderer = rendererSigil; |
| 12052 | } |
| 12053 | } |
| 12054 | } |
| 12055 | function popProvider(providerFiber) { |
| 12056 | var currentValue = valueCursor.current; |
| 12057 | pop(valueCursor, providerFiber); |
no test coverage detected