MCPcopy Index your code
hub / github.com/react/react / pushDispatcher

Function pushDispatcher

packages/react-reconciler/src/ReactFiberWorkLoop.js:2398–2409  ·  view source on GitHub ↗
(container: any)

Source from the content-addressed store, hash-verified

2396}
2397
2398function pushDispatcher(container: any) {
2399 const prevDispatcher = ReactSharedInternals.H;
2400 ReactSharedInternals.H = ContextOnlyDispatcher;
2401 if (prevDispatcher === null) {
2402 // The React isomorphic package does not include a default dispatcher.
2403 // Instead the first renderer will lazily attach one, in order to give
2404 // nicer error messages.
2405 return ContextOnlyDispatcher;
2406 } else {
2407 return prevDispatcher;
2408 }
2409}
2410
2411function popDispatcher(prevDispatcher: any) {
2412 ReactSharedInternals.H = prevDispatcher;

Callers 2

renderRootSyncFunction · 0.85
renderRootConcurrentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected