redux-toolkit
redux-toolkit copied to clipboard
fetchBaseQuery: expose extraOptions to prepareHeaders
Triggered by #4290 and the fact that we had similar asks before. Not sure if the extra generic arg is worth it. Thoughts, @EskiMojo14 & @markerikson ?
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit 968c2f624bf45bbe835d5a73c729ee58a6e8712b:
| Sandbox | Source |
|---|---|
| rsk-github-issues-example | Configuration |
| @examples-query-react/basic | Configuration |
| @examples-query-react/advanced | Configuration |
| @examples-action-listener/counter | Configuration |
| rtk-esm-cra | Configuration |
Deploy Preview for redux-starter-kit-docs ready!
| Name | Link |
|---|---|
| Latest commit | 968c2f624bf45bbe835d5a73c729ee58a6e8712b |
| Latest deploy log | https://app.netlify.com/sites/redux-starter-kit-docs/deploys/65fcbdc049d1c400086ba70f |
| Deploy Preview | https://deploy-preview-4291--redux-starter-kit-docs.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
size-limit report 📦
| Path | Size |
|---|---|
| 1. entry point: @reduxjs/toolkit/query/react (cjs, production.min.cjs) | 23.95 KB (+0.06% 🔺) |
| 3. fetchBaseQuery (.modern.mjs) | 5.09 KB (+0.25% 🔺) |
Would you prefer it like this or without the generic and just unknown? 🤔
definitely the generic