File tree 4 files changed +34
-45
lines changed
4 files changed +34
-45
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ const config = {
27
27
} ) ,
28
28
replace ( {
29
29
'process.env.NODE_ENV' : JSON . stringify ( env ) ,
30
+ preventAssignment : true ,
30
31
} ) ,
31
32
commonjs ( ) ,
32
33
] ,
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'
9
2
10
3
import { getBatch } from './utils/batch'
11
- import shallowEqual from './utils/shallowEqual'
12
4
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
14
7
const batch = getBatch ( )
15
8
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'
5
2
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'
11
3
import { unstable_batchedUpdates as batch } from './utils/reactBatchedUpdates'
12
- import shallowEqual from './utils/shallowEqual '
4
+ import { setBatch } from './utils/batch '
13
5
6
+ // Enable batched updates in our subscriptions for use
7
+ // with standard React renderers (ReactDOM, React Native)
14
8
setBatch ( batch )
15
9
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