Skip to content

Releases: klis87/redux-requests

redux-saga-requests v0.23.0

28 Feb 17:59
Compare
Choose a tag to compare

Added getDefaultData to requestsReducer config. Use instead of multiple, if you want your initial data to be something else than null or [], for instance () => ({ value: null }), set as multiple => (multiple ? [] : null) by default, so this is backward compatible change.

Thanks to @megawac for the idea and PR!

redux-saga-requests-react v0.1.0

20 Jan 18:42
Compare
Choose a tag to compare

redux-saga-requests v0.22.0

05 Jan 19:24
Compare
Choose a tag to compare

Small changes which allowed adding GraphQL driver:

  • by default GraphQL queries are run as takeLatest (like REST GET), mutations as takeEvery (like REST POST PUT DELETE etc.)
  • actions with request.query are recognized as request actions

redux-saga-requests-mock v0.1.5

05 Jan 19:17
Compare
Choose a tag to compare

Updated Typescript types

redux-saga-requests-graphql v0.1.0

05 Jan 19:19
Compare
Choose a tag to compare

A new driver which allows to use redux-saga-requests with GraphQL! See docs and example for more info. It requires redux-saga-requests at least 0.22.0 version.

redux-saga-requests-fetch v0.9.6

05 Jan 19:17
Compare
Choose a tag to compare

Updated Typescript types.

redux-saga-requests-axios v0.7.6

05 Jan 19:15
Compare
Choose a tag to compare

Updated Typescript types.

redux-saga-requests v0.21.0

29 Dec 15:35
Compare
Choose a tag to compare

redux-saga-requests v0.20.0

10 Dec 18:02
Compare
Choose a tag to compare

Added support to redux-saga 1.0.0-beta version. Note, that this is a backward compatible change, it still supports 0.16 version!

redux-saga-requests v0.19.0

17 Nov 18:24
Compare
Choose a tag to compare
  • allowed explicit meta.asPromise: false to overwrite requestsPromiseMiddleware with auto for a given action, thanks to @nemosupremo for the idea and PR!
  • added action meta.runByWatcher flag, which can be used to disable handling it by watchRequests, which is by the way used by default for sendRequest with dispatchRequestAction: true to avoid duplicated requests when you use both watchRequests and sendRequest
  • removed per action config in watchRequests, so if you need to override global abortOn and takeLatest for an action, you can use meta, for example:
const fetchBooks = () => ({
  type: FETCH_BOOKS,
  request: {
    url: '/books',
  },
  meta: {
    takeLatest: false,
    abortOn: 'LOGOUT',
  },
});
  • improved default runOn... options of sendRequests, so for most cases you don't even need to worry about them, see more details in readme