redux-resource
Advanced tools
Changelog
redux-resource@3.1.0
New Features
getResources
now supports a third argument, options
. Pass { byId: true }
to receive the resources
as an object rather than an array.Changelog
redux-resource@3.0.5
Bug Fixes
instanceof Array
calls have been replaced with Array.isArray
to improve support for multiple global
environments.Changelog
redux-resource@3.0.4
Bug Fixes
DELETE_RESOURCES
action type could log an invalid warning message
to the console in certain situations.Changelog
redux-resource@3.0.3
Bug Fixes
Changelog
redux-resource@3.0.2
Bug Fixes
actionTypes
export has been fixed. It was not exporting UPDATE_RESOURCES
nor DELETE_RESOURCES
.Changelog
redux-resource@3.0.0
Migration guide
Breaking Changes
The NULL
request status has been renamed to IDLE
. The request action types (such as READ_RESOURCES_NULL
) have
been updated to reflect this new name.
As a consequence of the above change, getStatus
will now return an object with an idle
key rather than a null
key.
The deprecated getResources()
signature that accepted three arguments has been removed.
Omitting a filter
when calling getResources
now returns all of the resources in the slice.
Four action types have been reserved for a future minor release of Redux Resource: REQUEST_IDLE
, REQUEST_PENDING
,
REQUEST_SUCCEEDED
, and REQUEST_FAILED
. Using these action types will cause a warning to be logged, and will
conflict with an upcoming update to the library.
New Features
The resourceType
is now stored on the resource slice.
There are two new action types for directly modifying resource data independent from requests: UPDATE_RESOURCES
and DELETE_RESOURCES
.
Deprecations
resourceName
property on actions. Use resourceType
instead.