We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b15716 commit b19a571Copy full SHA for b19a571
src/visitor.js
@@ -81,10 +81,13 @@ import {
81
82
import { isClientReference } from './utils'
83
84
-const { ReactCurrentDispatcher } =
+const REACT_INTERNALS =
85
(React: any).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED ||
86
(React: any).__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE
87
88
+const ReactCurrentDispatcher =
89
+ REACT_INTERNALS && REACT_INTERNALS.ReactCurrentDispatcher
90
+
91
// In the presence of setImmediate, i.e. on Node, we'll enable the
92
// yielding behavior that gives the event loop a chance to continue
93
// running when the prepasses would otherwise take too long
0 commit comments