MCPcopy Index your code
hub / github.com/microsoft/SandDance / pushProvider

Function pushProvider

docs/external/js/react-dom.development.js:12039–12054  ·  view source on GitHub ↗
(providerFiber, nextValue)

Source from the content-addressed store, hash-verified

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

Callers 2

updateContextProviderFunction · 0.85
beginWorkFunction · 0.85

Calls 2

pushFunction · 0.70
errorFunction · 0.70

Tested by

no test coverage detected