Returns an action with type actions.FAILED
and the error
Returns an action with type actions.SUCCEEDED
and the data
Returns an action with type actions.RESET
, used to reset store state
Returns an action with type actions.REPLACE
, used to modify store to a known state.
Returns an object with the actions
types array prefixed by the PREFIX
and the action functions requested
, failed
, succeeded
, reset
, retry
, replace
.
Returns an action with type actions.REQUESTED
and spread params
for the request
Same as requested
, but with type actions.RETRY
to disambiguate if needed
Returns a reducer function handling action types from actions
(created by async-data createActions
method). defaultState
is the initial (and reset) state of the reducer.
Returns an object with the actions
types array prefixed by the PREFIX
and the action functions change
, setData
, setNonData
plus the async-data
functions: requested
, failed
, succeeded
, reset
, retry
, replace
.
Returns an action with type actions.CHANGE
and name
and value
props
Returns an action with type actions.SETDATA
and the data
Returns an action with type actions.SETNONDATA
and the nonData
Returns an action with type actions.SUBMITTED
Returns a reducer function handling action types from actions
(created by form createActions
method). defaultData
is the initial (and reset) data of the form. defaultNonData
is the initial complimentary non form data.
Must be a function, with the current form data
in the first argument, the requested
flag in the second and the rest of the reducer state in the third. The requested
flag is set once the requested
action is called.