Open guillaumecrespel opened 5 years ago
import { matchForm } from '@k-ramel/driver-form'
when(matchForm(
2.
```js
const reaction = (action, store, { form }) => {
const values = form.getUpdatedValues(action)
}
const reaction = (action, store, { form }) => {
const fields = form.getUpdatedFieldNames(action)
}
waiting for #283
I can't write 1.
without using driver parameter to retrieve key.
when((action, store, drivers) => drivers.form.match('myForm'))(reaction)
I don't know if this is worth because write now we are doing:
when(/@@form\/.*/, ({ payload }) => payload['@@form-name'] === 'myForm')(reaction)
add helpers to not rewrite the
key
(default is@@form-
) :