redux-resource-prop-types
with npm:npm install redux-resource-prop-types --save
idPropType
Tip: This prop type requires that your IDs be either strings or numbers.
statusPropType
requestStatusPropType
requestStatuses
. Typically, you'll want to use statusPropType
instead, but this can be useful when verifying the structure of your slice.resourcePropType
PropTypes.shape()
, except that it enforces an ID.requestPropType
PropTypes.shape()
, except that it enforces ids
, status
, requestKey
and resourceType
. Typically, you won't need to use this, but it can be useful to verify the structure of your state.