File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ import {
108
108
} from 'shared/ReactSerializationErrors' ;
109
109
110
110
import { getOrCreateServerContext } from 'shared/ReactServerContextRegistry' ;
111
+ import ReactSharedInternals from 'shared/ReactSharedInternals' ;
111
112
import ReactServerSharedInternals from './ReactServerSharedInternals' ;
112
113
import isArray from 'shared/isArray' ;
113
114
import binaryToComparableString from 'shared/binaryToComparableString' ;
@@ -209,9 +210,9 @@ const {
209
210
TaintRegistryValues,
210
211
TaintRegistryByteLengths,
211
212
TaintRegistryPendingRequests,
212
- ReactCurrentDispatcher,
213
213
ReactCurrentCache,
214
214
} = ReactServerSharedInternals ;
215
+ const ReactCurrentDispatcher = ReactSharedInternals . ReactCurrentDispatcher ;
215
216
216
217
function throwTaintViolation ( message : string ) {
217
218
// eslint-disable-next-line react-internal/prod-error-codes
Original file line number Diff line number Diff line change 5
5
* LICENSE file in the root directory of this source tree.
6
6
*/
7
7
8
- import ReactCurrentDispatcher from './ReactCurrentDispatcher' ;
9
8
import ReactCurrentCache from './ReactCurrentCache' ;
10
9
import {
11
10
TaintRegistryObjects ,
@@ -17,7 +16,6 @@ import {
17
16
import { enableTaint } from 'shared/ReactFeatureFlags' ;
18
17
19
18
const ReactServerSharedInternals = {
20
- ReactCurrentDispatcher,
21
19
ReactCurrentCache,
22
20
} ;
23
21
Original file line number Diff line number Diff line change 5
5
* LICENSE file in the root directory of this source tree.
6
6
*/
7
7
8
+ import ReactCurrentDispatcher from './ReactCurrentDispatcher' ;
8
9
import ReactCurrentOwner from './ReactCurrentOwner' ;
9
10
import ReactDebugCurrentFrame from './ReactDebugCurrentFrame' ;
10
11
import { enableServerContext } from 'shared/ReactFeatureFlags' ;
11
12
import { ContextRegistry } from './ReactServerContextRegistry' ;
12
13
13
14
const ReactSharedInternals = {
15
+ ReactCurrentDispatcher,
14
16
ReactCurrentOwner,
15
17
} ;
16
18
You can’t perform that action at this time.
0 commit comments