| 1 | import connect from './components/connect'
|
|---|
| 2 | export type {
|
|---|
| 3 | Connect,
|
|---|
| 4 | ConnectProps,
|
|---|
| 5 | ConnectedProps,
|
|---|
| 6 | } from './components/connect'
|
|---|
| 7 |
|
|---|
| 8 | import shallowEqual from './utils/shallowEqual'
|
|---|
| 9 |
|
|---|
| 10 | import Provider from './components/Provider'
|
|---|
| 11 | import { defaultNoopBatch } from './utils/batch'
|
|---|
| 12 |
|
|---|
| 13 | export { ReactReduxContext } from './components/Context'
|
|---|
| 14 | export type { ReactReduxContextValue } from './components/Context'
|
|---|
| 15 |
|
|---|
| 16 | export type { ProviderProps } from './components/Provider'
|
|---|
| 17 |
|
|---|
| 18 | export type {
|
|---|
| 19 | MapDispatchToProps,
|
|---|
| 20 | MapDispatchToPropsFactory,
|
|---|
| 21 | MapDispatchToPropsFunction,
|
|---|
| 22 | MapDispatchToPropsNonObject,
|
|---|
| 23 | MapDispatchToPropsParam,
|
|---|
| 24 | MapStateToProps,
|
|---|
| 25 | MapStateToPropsFactory,
|
|---|
| 26 | MapStateToPropsParam,
|
|---|
| 27 | MergeProps,
|
|---|
| 28 | Selector,
|
|---|
| 29 | SelectorFactory,
|
|---|
| 30 | } from './connect/selectorFactory'
|
|---|
| 31 |
|
|---|
| 32 | export { createDispatchHook, useDispatch } from './hooks/useDispatch'
|
|---|
| 33 | export type { UseDispatch } from './hooks/useDispatch'
|
|---|
| 34 |
|
|---|
| 35 | export { createSelectorHook, useSelector } from './hooks/useSelector'
|
|---|
| 36 | export type { UseSelector } from './hooks/useSelector'
|
|---|
| 37 |
|
|---|
| 38 | export { createStoreHook, useStore } from './hooks/useStore'
|
|---|
| 39 | export type { UseStore } from './hooks/useStore'
|
|---|
| 40 |
|
|---|
| 41 | export type { Subscription } from './utils/Subscription'
|
|---|
| 42 |
|
|---|
| 43 | export * from './types'
|
|---|
| 44 |
|
|---|
| 45 | /**
|
|---|
| 46 | * @deprecated As of React 18, batching is enabled by default for ReactDOM and React Native.
|
|---|
| 47 | * This is now a no-op that immediately runs the callback.
|
|---|
| 48 | */
|
|---|
| 49 | const batch = defaultNoopBatch
|
|---|
| 50 |
|
|---|
| 51 | export { Provider, batch, connect, shallowEqual }
|
|---|