resourceReducer
. The plugins are a collection of common patterns that you may find yourself needing when writing a CRUD application.redux-resource-plugins
from npm:npm install redux-resource-plugins --save
reset
: This plugin provides action types that let you reset the state of an entire slice. You can also pass a list to reset the state of just that list.includedResources
: This plugin adds support for including multiple resource types into a single action for read requests. This can be useful if you're using GraphQL, JSON API, or normalizr.httpStatusCodes
: Add this plugin to track the HTTP status codes associated with each request. The built-in reducer behavior doesn't provide any information specific to HTTP. What this means is that if a request fails, for instance, you won't be able to tell that it failed with a 404 response.