@@ -10,25 +10,25 @@ const _check2: typeof rsc = {} as typeof normal
10
10
11
11
// -------------------------------------------------------------------------------------
12
12
13
- function throwNotSupportedError (
13
+ const throwNotSupportedError = ( (
14
14
// eslint-disable-next-line @typescript-eslint/no-unused-vars
15
15
...args : any [ ]
16
- ) : any {
16
+ ) : any => {
17
17
throw new Error (
18
18
'This function is not supported in React Server Components. Please only use this export in a Client Component.' ,
19
19
)
20
- }
20
+ } ) as any
21
21
22
22
export {
23
- throwNotSupportedError as batch ,
24
23
throwNotSupportedError as Provider ,
24
+ throwNotSupportedError as batch ,
25
25
throwNotSupportedError as connect ,
26
- throwNotSupportedError as useSelector ,
27
- throwNotSupportedError as useDispatch ,
28
- throwNotSupportedError as useStore ,
29
26
throwNotSupportedError as createDispatchHook ,
30
27
throwNotSupportedError as createSelectorHook ,
31
28
throwNotSupportedError as createStoreHook ,
29
+ throwNotSupportedError as useDispatch ,
30
+ throwNotSupportedError as useSelector ,
31
+ throwNotSupportedError as useStore ,
32
32
}
33
33
export const ReactReduxContext = { } as any
34
34
export { default as shallowEqual } from './utils/shallowEqual'
0 commit comments