MCPcopy Create free account
hub / github.com/reactjs/react-rails / pushProvider

Function pushProvider

lib/assets/react-source/development/react.js:15599–15614  ·  view source on GitHub ↗
(providerFiber, nextValue)

Source from the content-addressed store, hash-verified

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);

Callers 2

updateContextProviderFunction · 0.85
beginWorkFunction · 0.85

Calls 2

pushFunction · 0.70
errorFunction · 0.70

Tested by

no test coverage detected