Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit 18e552c

Browse files
committed
Merge branch 'master' of github.com:davidkpiano/react-redux-form
2 parents 8cb8923 + a7f9660 commit 18e552c

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

docs/api/actions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- **Action thunk creators:**
77
- [`actions.merge()`](#actions-merge)
88
- [`actions.xor()`](#actions-xor)
9+
- [`actions.push()`](#actions-push)
910
- [`actions.toggle()`](#actions-toggle)
1011
- [`actions.filter()`](#actions-filter)
1112
- [`actions.map()`](#actions-map)

docs/guides/faqs.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22

33
This list will be updated frequently!
44

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+
const store = 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+
521
### How do you add conditional class names based on field state?
622

723
Use the `mapProps={{...}}` property on `<Control>` components to set any props on the control component based on field state, like this:

0 commit comments

Comments
 (0)