@@ -29,8 +29,6 @@ import { mergePropsFactory } from '../connect/mergeProps'
29
29
import type { Subscription } from '../utils/Subscription'
30
30
import { createSubscription } from '../utils/Subscription'
31
31
import { useIsomorphicLayoutEffect } from '../utils/useIsomorphicLayoutEffect'
32
- import shallowEqual from '../utils/shallowEqual'
33
- import hoistStatics from '../utils/hoistStatics'
34
32
import warning from '../utils/warning'
35
33
36
34
import type {
@@ -39,14 +37,6 @@ import type {
39
37
} from './Context'
40
38
import { ReactReduxContext } from './Context'
41
39
42
- import type { uSES } from '../utils/useSyncExternalStore'
43
- import { notInitialized } from '../utils/useSyncExternalStore'
44
-
45
- let useSyncExternalStore = notInitialized as uSES
46
- export const initializeConnect = ( fn : uSES ) => {
47
- useSyncExternalStore = fn
48
- }
49
-
50
40
// Define some constant arrays just to avoid re-creating these
51
41
const EMPTY_ARRAY : [ unknown , number ] = [ null , 0 ]
52
42
const NO_SUBSCRIPTION_ARRAY = [ null , null ]
@@ -726,7 +716,7 @@ function connect<
726
716
let actualChildProps : Record < string , unknown >
727
717
728
718
try {
729
- actualChildProps = useSyncExternalStore (
719
+ actualChildProps = React . useSyncExternalStore (
730
720
// TODO We're passing through a big wrapper that does a bunch of extra side effects besides subscribing
731
721
subscribeForReact ,
732
722
// TODO This is incredibly hacky. We've already processed the store update and calculated new child props,
0 commit comments