To reduce asynchronous actions in documents, the state of an async request is saved as a property isFetchingin the state container for various objects
{
selectedSubreddit: 'frontend',
postsBySubreddit: {
frontend: {
isFetching: true,
didInvalidate: false,
items: []
},
reactjs: {
isFetching: false,
...
This works great, but I'm looking to create my application, and I'm looking for design patterns that will scale on multiple objects that need to be stored in the status container and synchronized with my api. So I'm looking for standards or libraries that have adopted the reduct community.
I found Flux Standard Action , which looks quite reasonable, but it’s more a standardization of handling payloads and errors, rather than an asynchronous request status.
- , ? , - { success, isFetching, error }.