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
{{ message }}
This repository was archived by the owner on Aug 23, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: docs/guides/faqs.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,22 @@
2
2
3
3
This list will be updated frequently!
4
4
5
+
### How do you combine the reducer created by react-redux-form and `combineForms` with other reducers?
6
+
7
+
Use it along side the other reducers and call [combineForms](https://davidkpiano.github.io/react-redux-form/docs/api/combineForms.html) with the second argument set to the reducer key of your choice, `deep` in the following example):
8
+
9
+
```javascript
10
+
conststore=createStore(combineReducers({
11
+
nav: navReducer, // <== here
12
+
foo: fooReducer,
13
+
bar: barReducer,
14
+
deep:combineForms({
15
+
user: initialUserState,
16
+
goat: initialGoatState,
17
+
}, 'deep'),
18
+
}));
19
+
```
20
+
5
21
### How do you add conditional class names based on field state?
6
22
7
23
Use the `mapProps={{...}}` property on `<Control>` components to set any props on the control component based on field state, like this:
0 commit comments