Comment on page
ConanJs gives you a few mechanisms to announce within your actions that you are performing asynchronous operations.
These are the benefits:
- NO boiler plate code to update your state asynchronously.
There are two mechanisms to declare async actions: auto-bind and monitor actions.
diContext.issuesService.fetch(repo, org, page).catch(() => thread.reducers.$fetch()),
//What to do when the asap resolves
(issues, reducers) => reducers.$fetch(issues as Issue),
//Next two params are for logging purposes
// - Description of the async operation
// - Payload (also shown on the logging)
[repo, org, page]