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

Function pushDispatcher

lib/assets/react-source/development/react.js:25718–25730  ·  view source on GitHub ↗
(root)

Source from the content-addressed store, hash-verified

25716 }
25717
25718 function pushDispatcher(root) {
25719 var prevDispatcher = ReactCurrentDispatcher$1.current;
25720 ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;
25721
25722 if (prevDispatcher === null) {
25723 // The React isomorphic package does not include a default dispatcher.
25724 // Instead the first renderer will lazily attach one, in order to give
25725 // nicer error messages.
25726 return ContextOnlyDispatcher;
25727 } else {
25728 return prevDispatcher;
25729 }
25730 }
25731
25732 function popDispatcher(prevDispatcher) {
25733 ReactCurrentDispatcher$1.current = prevDispatcher;

Callers 2

performSyncWorkOnRootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected