You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add advanced middleware feature to inject custom network adapters
This moves most of the logic from the query middleware to the new
advanced middleware. The query middleware will call advanced using
the default superagent adapter.
* Add tests for the superagent adapter
* Add advanced CommonJS entry point alias
* Create separate default and advanced entries
* Fix advanced invalid imports
* Add test for PATCH in superagent adapter
* Update README with docs about redux-query/advanced
Copy file name to clipboardExpand all lines: README.md
+47Lines changed: 47 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -256,6 +256,53 @@ The result of the promise returned by `mutateAsync` will be the following object
256
256
257
257
Similarly to how mutations are triggered by dispatching `mutateAsync` actions, you can trigger requests by dispatching `requestAsync` actions with a request query config.
258
258
259
+
### Usage without superagent with `redux-query/advanced`
260
+
261
+
By default, `redux-query` makes XHR requests using the [superagent](https://github.com/visionmedia/superagent) library. If you'd rather use a different library for making requests, you can use the `redux-query`'s "advanced" mode by importing from `redux-query/advanced` instead of `redux-query`.
262
+
263
+
Note: The default [`queryMiddleware`](./src/middleware/query.js) exported from the main `redux-query` entry point is simply a [superagent adapter](./src/adapters/superagent.js) bound to `queryMiddlewareAdvanced`.
0 commit comments