Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support a custom paramsSerializer on fetchBaseQuery #1594

Merged
merged 3 commits into from
Oct 17, 2021

Conversation

msutkowski
Copy link
Member

I missed this when we originally built fetchBaseQuery, but ran into this yesterday at work. A lot of ruby/elixir/whatever APIs natively handle a bracket params format, so in order to support this, we'd need to allow for a custom paramsSerializer as proposed.

@msutkowski msutkowski requested review from phryneas, Shrugsy and markerikson and removed request for phryneas and Shrugsy October 8, 2021 15:10
@netlify
Copy link

netlify bot commented Oct 8, 2021

✔️ Deploy Preview for redux-starter-kit-docs ready!

🔨 Explore the source changes: 655d5ea

🔍 Inspect the deploy log: https://app.netlify.com/sites/redux-starter-kit-docs/deploys/61605f69cfde030008e9beb5

😎 Browse the preview: https://deploy-preview-1594--redux-starter-kit-docs.netlify.app

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 8, 2021

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 c237581:

Sandbox Source
Vanilla Configuration
Vanilla Typescript Configuration
rsk-github-issues-example Configuration
@examples-query-react/basic Configuration
@examples-query-react/advanced Configuration

@github-actions
Copy link

github-actions bot commented Oct 8, 2021

size-limit report 📦

Path Size
1. entry point: @reduxjs/toolkit (cjs.production.min.js) 12.28 KB (0%)
1. entry point: @reduxjs/toolkit (esm.js) 10.27 KB (0%)
1. entry point: @reduxjs/toolkit/query (cjs.production.min.js) 20.53 KB (+0.1% 🔺)
1. entry point: @reduxjs/toolkit/query (esm.js) 17.53 KB (+0.12% 🔺)
1. entry point: @reduxjs/toolkit/query/react (cjs.production.min.js) 22.6 KB (+0.08% 🔺)
1. entry point: @reduxjs/toolkit/query/react (esm.js) 20.15 KB (+0.09% 🔺)
2. entry point: @reduxjs/toolkit (without dependencies) (cjs.production.min.js) 5.6 KB (0%)
2. entry point: @reduxjs/toolkit (without dependencies) (esm.js) 5.58 KB (0%)
2. entry point: @reduxjs/toolkit/query (without dependencies) (cjs.production.min.js) 9.33 KB (+0.2% 🔺)
2. entry point: @reduxjs/toolkit/query (without dependencies) (esm.js) 9.69 KB (+0.18% 🔺)
2. entry point: @reduxjs/toolkit/query/react (without dependencies) (cjs.production.min.js) 2.6 KB (0%)
2. entry point: @reduxjs/toolkit/query/react (without dependencies) (esm.js) 2.44 KB (0%)
3. createSlice (esm.js) 5.16 KB (0%)
3. createEntityAdapter (esm.js) 5.83 KB (0%)
3. configureStore (esm.js) 5.83 KB (0%)
3. createApi (esm.js) 15.8 KB (0%)
3. createApi (react) (esm.js) 18.37 KB (0%)
3. fetchBaseQuery (esm.js) 10.99 KB (+0.23% 🔺)
3. setupListeners (esm.js) 9.85 KB (0%)
3. ApiProvider (esm.js) 17.22 KB (0%)

@obataku
Copy link

obataku commented Oct 8, 2021

seems very similar in spirit to the proposal in this issue: #1469

@msutkowski
Copy link
Member Author

seems very similar in spirit to the proposal in this issue: #1469

I didn't see that thread - I'll drop a comment there.

Copy link
Collaborator

@Shrugsy Shrugsy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Maybe this should go into the v1.7.0-integration branch though?

@msutkowski msutkowski changed the base branch from master to v1.7.0-integration October 11, 2021 01:36
Remove excessive tag invalidation in examples which would
otherwise interfere with the manual cache update
@msutkowski msutkowski force-pushed the rtkq-fetchBaseQuery-paramsSerializer branch 2 times, most recently from 681adc1 to ec5cfd0 Compare October 11, 2021 01:41
@msutkowski msutkowski force-pushed the rtkq-fetchBaseQuery-paramsSerializer branch from ec5cfd0 to 8e14a98 Compare October 11, 2021 01:41
@phryneas phryneas modified the milestones: 1.8, 1.7 Oct 16, 2021
@phryneas phryneas merged commit 9e36af6 into v1.7.0-integration Oct 17, 2021
@phryneas phryneas deleted the rtkq-fetchBaseQuery-paramsSerializer branch October 17, 2021 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants