Typedef
Static Public Summary | ||
public |
A redux action type. |
|
public |
ReduxReducer: Reducer<any>|Reducer<any, AnyAction> A redux reducer. |
|
public |
A redux saga (a generator returned by a generator function). |
|
public |
ReduxStateSelector: function(state: object): * Redux state selector. |
|
public |
ReduxThunk: function(dispatch: *, getState: *) | function(dispatch: *) A redux thunk, dispatch this to run it. |
Static Public
public ReduxSaga: Generator<*> source
A redux saga (a generator returned by a generator function). https://redux-saga.js.org/
public ReduxStateSelector: function(state: object): * source
Redux state selector. Maps the whole state to just a specific part of the state. This is used to structure and re-combine ReDApp modules however you like, if you prefer something else than the default.
Example:
// get redapp root
getRootState: (state) => state.redapp
// From redapp root state to tracking state.
getTrackingState: (state) => getRootState(state).tracking
// From tracking state to transactions state.
getTransactionsState: (state) => getTrackingState(state).transactions
public ReduxThunk: function(dispatch: *, getState: *) | function(dispatch: *) source
A redux thunk, dispatch this to run it. https://github.com/reduxjs/redux-thunk