Action features
You can add features to your actions to handle common tasks.
Internet features
The features explained in this page help us check for internet connectivity
Control features
The features explained in this page help you control when and how actions run.
Optimistic features
Suppose we have a like button.
Paged loading
To load a list page by page (a "load more" button, or an infinite scroll), extend LoadPages.
Base action with common logic
In Kiss, all actions must extend KissAction.
Before and after the reducer
Suppose you want to prevent the user from touching the screen, while an async action is running.
Errors thrown by actions
When your action runs, it may encounter problems. Examples include:
Action status
All actions have a status property of type ActionStatus,
Aborting the dispatch
You may override the action's abortDispatch() function to completely prevent
Aborting actions
An action that is in progress can be aborted: its request is cancelled, its result is ignored,
Wrapping the reducer
You may wrap an action reducer to allow for some pre- or post-processing.