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.
@@ -60,6 +64,8 @@ Returns an action that, when handled by a `modelReducer`, changes the value of t
60
64
61
65
When the change action is handled by a [`formReducer`](./formReducer), the field model's `.dirty` state is set to `true` and its corresponding `.pristine` state is set to `false`.
62
66
67
+
**Note:** if using `track`, `redux-thunk` is required.
68
+
63
69
### Arguments
64
70
-`model`_(String | Function)_: the model whose value will be changed
65
71
-`value`_(any)_: the value the model will be changed to
@@ -257,13 +263,13 @@ Dispatches an `actions.change(...)` action with the `model` value updated to not
257
263
// {
258
264
// test: {
259
265
// foo: 1,
260
-
// bar: 2,
266
+
// bar: 2,
261
267
// baz: 3
262
268
// }
263
269
// }
264
270
265
271
dispatch(actions.omit('test', 'foo'));
266
-
// the new test state:
272
+
// the new test state:
267
273
// => { test: { bar: 2, baz: 3 } }
268
274
269
275
dispatch(actions.omit('test', ['foo', 'baz']);
@@ -292,7 +298,7 @@ import { actions } from 'react-redux-form';
0 commit comments