MCPcopy
hub / github.com/plotly/dash / pushProvider

Function pushProvider

dash/deps/react-dom@18.2.0.js:13048–13061  ·  view source on GitHub ↗
(providerFiber, context, nextValue)

Source from the content-addressed store, hash-verified

13046 }
13047 }
13048 function pushProvider(providerFiber, context, nextValue) {
13049 {
13050 push(valueCursor, context._currentValue, providerFiber);
13051 context._currentValue = nextValue;
13052
13053 {
13054 if (context._currentRenderer !== undefined && context._currentRenderer !== null && context._currentRenderer !== rendererSigil) {
13055 error('Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.');
13056 }
13057
13058 context._currentRenderer = rendererSigil;
13059 }
13060 }
13061 }
13062 function popProvider(context, providerFiber) {
13063 var currentValue = valueCursor.current;
13064 pop(valueCursor, providerFiber);

Callers 2

updateContextProviderFunction · 0.70

Calls 2

pushFunction · 0.70
errorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…