|
|
|
|
|
by pault
3025 days ago
|
|
I always put a `pending` property on the `meta` object, and any component that needs to show network status can just check that property on every render cycle. Aside from requiring some extra utility functions in the reducers to prevent having to updating `pending` for every state of the request it's rock solid and I haven't ever encountered a situation where it wouldn't work. You can get a _lot_ of mileage out of conforming to the FSA standard[1]; network status goes in meta, and errors are always handled the same way. [1] https://github.com/redux-utilities/flux-standard-action |
|
(Edit) FYI we had actions to set isWaiting, etc.