(container: any)
| 2396 | } |
| 2397 | |
| 2398 | function 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 | |
| 2411 | function popDispatcher(prevDispatcher: any) { |
| 2412 | ReactSharedInternals.H = prevDispatcher; |
no outgoing calls
no test coverage detected