You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ifyouneedtocustomizethecreationofthepayloadvalueofanactioncreatorbymeansofa [`prepare callback`](./createAction.md#using-prepare-callbacks-to-customize-action-contents), thevalueoftheappropriatefieldofthe`reducers`argumentobjectshouldbeanobjectinsteadofafunction. This object must contain two properties: `reducer` and `prepare`. The value of the `reducer` field should be the case reducer function while the value of the `prepare` field should be the prepare callback function.
46
+
43
47
### `initialState`
44
48
45
49
Theinitialstatevalueforthissliceofstate.
@@ -82,8 +86,6 @@ to force the TS compiler to accept the computed property.)
82
86
Eachfunction defined in the `reducers` argument will have a corresponding action creator generated using [`createAction`](./createAction.md)
83
87
and included in the result's `actions` field using the same function name.
84
88
85
-
Ifyouneedtocustomizethecreationofthepayloadvalueofanactioncreatorbymeansofa [`prepare callback`](./createAction.md#using-prepare-callbacks-to-customize-action-contents), thevalueoftheappropriatefieldofthe`reducers`argumentobjectshouldbeanobjectinsteadofafunction. This object must contain two properties: reducer and prepare. The value of the reducer field should be the case reducer function while the value of the prepare field should be the prepare callback function.
86
-
87
89
Thegenerated`reducer`function is suitable for passing to the Redux `combineReducers` function as a "slice reducer".
Copy file name to clipboardExpand all lines: docs/api/otherExports.md
+15-3Lines changed: 15 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -68,13 +68,25 @@ function isPlain(val) {
68
68
69
69
### `createNextState`
70
70
71
-
The default immutable update function from the [`immer` library](https://github.com/mweststrate/immer#api), re-exported here as `createNextState` (also commonly referred to as `produce`)
71
+
The default immutable update function from the [`immer` library](https://immerjs.github.io/immer/), re-exported here as `createNextState` (also commonly referred to as [`produce`](https://immerjs.github.io/immer/docs/produce))
72
72
73
73
### `combineReducers`
74
74
75
-
Redux's `combineReducers`, re-exported for convenience. While `configureStore` calls this internally, you may wish to call it yourself to compose multiple levels of slice reducers.
75
+
Redux's [`combineReducers`](https://redux.js.org/api/combinereducers), re-exported for convenience. While `configureStore` calls this internally, you may wish to call it yourself to compose multiple levels of slice reducers.
76
76
77
77
### `compose`
78
78
79
-
Redux's `compose`. It composes functions from right to left.
79
+
Redux's [`compose`](https://redux.js.org/api/compose). It composes functions from right to left.
80
80
This is a functional programming utility. You might want to use it to apply several store custom enhancers/ functions in a row.
81
+
82
+
### `bindActionCreators`
83
+
84
+
Redux's [`bindActionCreators`](https://redux.js.org/api/bindactioncreators). It wraps action creators with `dispatch()` so that they dispatch immediately when called.
85
+
86
+
### `createStore`
87
+
88
+
Redux's [`createStore`](https://redux.js.org/api/createstore). You should not need to use this directly.
89
+
90
+
### `applyMiddleware`
91
+
92
+
Redux's [`applyMiddleware`](https://redux.js.org/api/applymiddleware). You should not need to use this directly.
0 commit comments