MCPcopy Create free account
hub / github.com/microsoft/SandDance / pushDispatcher

Function pushDispatcher

docs/external/js/react-dom.development.js:22158–22170  ·  view source on GitHub ↗
(root)

Source from the content-addressed store, hash-verified

22156 }
22157
22158 function pushDispatcher(root) {
22159 var prevDispatcher = ReactCurrentDispatcher$1.current;
22160 ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;
22161
22162 if (prevDispatcher === null) {
22163 // The React isomorphic package does not include a default dispatcher.
22164 // Instead the first renderer will lazily attach one, in order to give
22165 // nicer error messages.
22166 return ContextOnlyDispatcher;
22167 } else {
22168 return prevDispatcher;
22169 }
22170 }
22171
22172 function popDispatcher(prevDispatcher) {
22173 ReactCurrentDispatcher$1.current = prevDispatcher;

Callers 2

performSyncWorkOnRootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected