@@ -29,8 +29,6 @@ import { mergePropsFactory } from '../connect/mergeProps'
2929import type { Subscription } from '../utils/Subscription'
3030import { createSubscription } from '../utils/Subscription'
3131import { useIsomorphicLayoutEffect } from '../utils/useIsomorphicLayoutEffect'
32- import shallowEqual from '../utils/shallowEqual'
33- import hoistStatics from '../utils/hoistStatics'
3432import warning from '../utils/warning'
3533
3634import type {
@@ -39,14 +37,6 @@ import type {
3937} from './Context'
4038import { ReactReduxContext } from './Context'
4139
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-
5040// Define some constant arrays just to avoid re-creating these
5141const EMPTY_ARRAY : [ unknown , number ] = [ null , 0 ]
5242const NO_SUBSCRIPTION_ARRAY = [ null , null ]
@@ -726,7 +716,7 @@ function connect<
726716 let actualChildProps : Record < string , unknown >
727717
728718 try {
729- actualChildProps = useSyncExternalStore (
719+ actualChildProps = React . useSyncExternalStore (
730720 // TODO We're passing through a big wrapper that does a bunch of extra side effects besides subscribing
731721 subscribeForReact ,
732722 // TODO This is incredibly hacky. We've already processed the store update and calculated new child props,
0 commit comments