File tree Expand file tree Collapse file tree 4 files changed +34
-45
lines changed Expand file tree Collapse file tree 4 files changed +34
-45
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ const config = {
2727 } ) ,
2828 replace ( {
2929 'process.env.NODE_ENV' : JSON . stringify ( env ) ,
30+ preventAssignment : true ,
3031 } ) ,
3132 commonjs ( ) ,
3233 ] ,
Original file line number Diff line number Diff line change 1- import Provider from './components/Provider'
2- import connectAdvanced from './components/connectAdvanced'
3- import { ReactReduxContext } from './components/Context'
4- import connect from './connect/connect'
5-
6- import { useDispatch } from './hooks/useDispatch'
7- import { useSelector } from './hooks/useSelector'
8- import { useStore } from './hooks/useStore'
1+ export * from './exports'
92
103import { getBatch } from './utils/batch'
11- import shallowEqual from './utils/shallowEqual'
124
13- // For other renderers besides ReactDOM and React Native, use the default noop batch function
5+ // For other renderers besides ReactDOM and React Native,
6+ // use the default noop batch function
147const batch = getBatch ( )
158
16- export {
17- Provider ,
18- connectAdvanced ,
19- ReactReduxContext ,
20- connect ,
21- batch ,
22- useDispatch ,
23- useSelector ,
24- useStore ,
25- shallowEqual ,
26- }
9+ export { batch }
Original file line number Diff line number Diff line change 1+ import Provider from './components/Provider'
2+ import connectAdvanced from './components/connectAdvanced'
3+ import { ReactReduxContext } from './components/Context'
4+ import connect from './connect/connect'
5+
6+ import { useDispatch , createDispatchHook } from './hooks/useDispatch'
7+ import { useSelector , createSelectorHook } from './hooks/useSelector'
8+ import { useStore , createStoreHook } from './hooks/useStore'
9+
10+ import shallowEqual from './utils/shallowEqual'
11+
12+ export {
13+ Provider ,
14+ connectAdvanced ,
15+ ReactReduxContext ,
16+ connect ,
17+ useDispatch ,
18+ createDispatchHook ,
19+ useSelector ,
20+ createSelectorHook ,
21+ useStore ,
22+ createStoreHook ,
23+ shallowEqual ,
24+ }
Original file line number Diff line number Diff line change 1- import Provider from './components/Provider'
2- import connectAdvanced from './components/connectAdvanced'
3- import { ReactReduxContext } from './components/Context'
4- import connect from './connect/connect'
1+ export * from './exports'
52
6- import { useDispatch , createDispatchHook } from './hooks/useDispatch'
7- import { useSelector , createSelectorHook } from './hooks/useSelector'
8- import { useStore , createStoreHook } from './hooks/useStore'
9-
10- import { setBatch } from './utils/batch'
113import { unstable_batchedUpdates as batch } from './utils/reactBatchedUpdates'
12- import shallowEqual from './utils/shallowEqual '
4+ import { setBatch } from './utils/batch '
135
6+ // Enable batched updates in our subscriptions for use
7+ // with standard React renderers (ReactDOM, React Native)
148setBatch ( batch )
159
16- export {
17- Provider ,
18- connectAdvanced ,
19- ReactReduxContext ,
20- connect ,
21- batch ,
22- useDispatch ,
23- createDispatchHook ,
24- useSelector ,
25- createSelectorHook ,
26- useStore ,
27- createStoreHook ,
28- shallowEqual ,
29- }
10+ export { batch }
You can’t perform that action at this time.
0 commit comments