source: node_modules/react-redux/src/index-rsc.ts

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[a762898]1import type * as normal from './index'
2import type * as rsc from './index-rsc'
3
4// checks to make sure we didn't forgot to replicate any exports
5
6// eslint-disable-next-line @typescript-eslint/no-unused-vars
7const _check: typeof normal = {} as typeof rsc
8// eslint-disable-next-line @typescript-eslint/no-unused-vars
9const _check2: typeof rsc = {} as typeof normal
10
11// -------------------------------------------------------------------------------------
12
13const throwNotSupportedError = ((
14 // eslint-disable-next-line @typescript-eslint/no-unused-vars
15 ...args: any[]
16): any => {
17 throw new Error(
18 'This function is not supported in React Server Components. Please only use this export in a Client Component.',
19 )
20}) as any
21
22export {
23 throwNotSupportedError as Provider,
24 throwNotSupportedError as batch,
25 throwNotSupportedError as connect,
26 throwNotSupportedError as createDispatchHook,
27 throwNotSupportedError as createSelectorHook,
28 throwNotSupportedError as createStoreHook,
29 throwNotSupportedError as useDispatch,
30 throwNotSupportedError as useSelector,
31 throwNotSupportedError as useStore,
32}
33export const ReactReduxContext = {} as any
34export { default as shallowEqual } from './utils/shallowEqual'
Note: See TracBrowser for help on using the repository browser.