Releases: redux-saga/saga-query
Releases · redux-saga/saga-query
React hooks revamp
- Renamed
useQuery
touseApi
useApi
will grab the loader and set up dispatching the event- Created new hook
useQuery
which will automatically dispatch the action when the hook is mounted - Grabbing the data with
useQuery
oruseApi
now requires a separatereact-redux
selector useCache
anduseQuery
always requires an action, not an action creator.- Support for more granular loaders on a per item basis as well as per endpoint
userLoader
anduseApi
both accept an action creator or an action as a input
Export types for react hook results
v3.0.5 export react interface hook results
Add default durations to debounce, throttle, and timer
v3.0.4 add defaults to timer, debounce, and throttle sagas
Updated dependencies
- Went through and updated dependencies
re-export some types from robodux
v3.0.2 export some types and functions from robodux
debounce and throttle helpers
createDebounce
and createThrottle
can now be used for the saga
property when creating an endpoint.
Fetch middleware and revamp ctx.request and ctx.response
v3.0.0 update readme
useLoader hook
Added a new hook useLoader
that makes it easier to grab the loader for a saga action.
Re-export redux-saga and performance monitor middleware
- Added
performanceMonitor
middleware to make it easier to track performance of sagas - Added
wrap
function to make it easier to simply call a function or saga within the context ofsaga-query
- Removed
redux-saga
as a peer-dependency and made it a hard dependency - Re-exported all
redux-saga/effects
so it'll be easier to usesaga-query
Fix react optional
v2.1.3 update typescript