Skip to content

Releases: redux-saga/saga-query

React hooks revamp

15 May 00:57
dd64d20
Compare
Choose a tag to compare
  • Renamed useQuery to useApi
  • 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 or useApi now requires a separate react-redux selector
  • useCache and useQuery always requires an action, not an action creator.
  • Support for more granular loaders on a per item basis as well as per endpoint
  • userLoader and useApi both accept an action creator or an action as a input

Export types for react hook results

10 May 14:56
738b709
Compare
Choose a tag to compare
v3.0.5

export react interface hook results

Add default durations to debounce, throttle, and timer

09 May 19:07
055ad35
Compare
Choose a tag to compare
v3.0.4

add defaults to timer, debounce, and throttle sagas

Updated dependencies

06 Apr 15:34
265d73a
Compare
Choose a tag to compare
  • Went through and updated dependencies

re-export some types from robodux

05 Apr 19:15
fe6e690
Compare
Choose a tag to compare
v3.0.2

export some types and functions from robodux

debounce and throttle helpers

03 Mar 18:39
301ad1e
Compare
Choose a tag to compare

createDebounce and createThrottle can now be used for the saga property when creating an endpoint.

Fetch middleware and revamp ctx.request and ctx.response

26 Feb 21:26
398e15c
Compare
Choose a tag to compare

useLoader hook

12 Feb 02:21
fca4eb3
Compare
Choose a tag to compare

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

11 Feb 17:14
4f0dfd4
Compare
Choose a tag to compare
  • 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 of saga-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 use saga-query

Fix react optional

14 Jan 04:45
e210d47
Compare
Choose a tag to compare
v2.1.3

update typescript