Redux Resource
  • Home
  • Introduction
    • Motivation
    • Core Concepts
    • Similar Projects
    • Examples
  • Resources
    • Resource Reducers
    • Resource Objects
    • Meta
    • Lists
    • Modifying Resources
  • Requests
    • Request Objects
    • Keys
    • Names
    • Statuses
    • Request Actions
      • Updating Lists
      • Reading Resources
      • Updating Resources
      • Creating Resources
      • Deleting Resources
  • Other Guides
    • Usage With React
    • Tracking Request Statuses
    • Using Request Statuses
    • Custom Action Types
    • Migration Guides
  • Recipes
    • Forms
    • Canceling Requests
    • Unauthorized Responses
    • User Feedback
    • Related Resources
    • Caching
  • Ecosystem Extras
    • Redux Resource Action Creators
    • Redux Resource XHR
    • Redux Resource Prop Types
    • Redux Resource Plugins
      • HTTP Status Codes
      • Selection
      • Reset
      • Included Resources
  • FAQ
    • General
    • State Tree
    • Actions
    • Lists
  • API Reference
    • resourceReducer
    • getStatus
    • getResources
    • upsertResources
    • setResourceMeta
    • actionTypes
    • requestStatuses
Powered by GitBook
On this page
  • Other Guides
  • Installation
  • Usage
  • Deprecated Plugins
  1. Ecosystem Extras

Redux Resource Plugins

PreviousRedux Resource Prop TypesNextHTTP Status Codes

Last updated 7 years ago

These plugins can be used to augment the reducer returned by resourceReducer. The plugins are a collection of common patterns that you may find yourself needing when writing a CRUD application.

Do you find yourself using the same plugin over and over? , and it might find its way into this package!

Other Guides

Old Documentation

Migration Guides

Installation

Install redux-resource-plugins from npm:

npm install redux-resource-plugins --save

Then, import the pieces of the package that you need:

import { selection } from 'redux-resource-plugins';

Usage

This library is a collection of different plugins. Refer to their individual documentation pages to learn more.

Deprecated Plugins

The following plugins are deprecated. There are built-in features that provide the same functionality as these plugins.

  • maintain a list of "selected" resource IDs. If your interface displays a list

    of resources that the user can select to perform bulk operations on, then this

    might be useful to you.

: 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.

: 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.

: 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.

: This plugin allows you to

reset
includedResources
httpStatusCodes
selection
Let us know
2.x documentation
v2 to v3
npm version
gzip size