Open bryan-foong opened 7 years ago
What is your use-case for wanting dispatch
in there?
Also, changeAction
is completely agnostic to what you return from it. It accepts an action creator, or an action thunk creator, or anything else if you're using something like redux-saga
or redux-observable
.
Is there anyway we can have the dispatch function included as 1 of arguments for
validators
,asyncValidators
andchangeAction
? It would be easier we can just do:asyncValidators={{usernameExist}}
instead of:
asyncValidators={{usernameExist: (value, done) => usernameExist(value, done, dispatch) }}
I believe changeAction is coupled with
redux-thunk
for dispatching an action, any solution if we are using other library such asredux-saga
instead ofredux-thunk
?