|
|
|
|
|
by adamsea
3024 days ago
|
|
One approach is to write a reducer which has `isWaiting`, `error`, `finished` bools (in addition to whatever data said promise eventually modifies), or something similar, and programmatically update them in your actions/thunks. This effectively tracks the state of the promise (resolved/not resolved, error).I think the Flux "standard action" puts something similar in the action object - not sure what they do with it then. |
|
[1] https://github.com/redux-utilities/flux-standard-action