MCPcopy Create free account
hub / github.com/plotly/dash / pushProvider

Function pushProvider

dash/deps/react-dom@18.3.1.js:14161–14174  ·  view source on GitHub ↗
(providerFiber, context, nextValue)

Source from the content-addressed store, hash-verified

14159 }
14160 }
14161 function pushProvider(providerFiber, context, nextValue) {
14162 {
14163 push(valueCursor, context._currentValue, providerFiber);
14164 context._currentValue = nextValue;
14165
14166 {
14167 if (context._currentRenderer !== undefined && context._currentRenderer !== null && context._currentRenderer !== rendererSigil) {
14168 error('Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.');
14169 }
14170
14171 context._currentRenderer = rendererSigil;
14172 }
14173 }
14174 }
14175 function popProvider(context, providerFiber) {
14176 var currentValue = valueCursor.current;
14177 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…