READ_RESOURCES_PENDING
. Then, one of the other three action types will be used to represent the resolution of that request. Use the other action types in the following way:READ_RESOURCES_FAILED
: Use this if the request fails for any reason. ThisREAD_RESOURCES_IDLE
: Use this when the request is aborted.READ_RESOURCES_SUCCEEDED
: Use this when the request was successful.READ_RESOURCES_SUCCEEDED
is dispatched, three things will happen:resources
will be added to the resources
section of the resource slice. Existing resources with the same ID will be merged with the new ones. To replace existing resources, rather than merge them, specify mergeResources: false
on the action.resources
specified on the action will be updated with readStatus: 'SUCCEEDED'
. To replace all of the existing meta, rather than merging it, specify mergeMeta: false
on the action.list
is passed, the IDs from the resources
array on the action will be added to the list. You may specify mergeListIds: false
to replace the existing list instead.