Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

remove internalQueryArgs #156

Merged
merged 2 commits into from
Jan 25, 2021
Merged

remove internalQueryArgs #156

merged 2 commits into from
Jan 25, 2021

Conversation

phryneas
Copy link
Collaborator

@phryneas phryneas commented Jan 24, 2021

This would address #154 and #155 in a more broad manner.

Also, I added endpointDefinition to serializeQueryArgs and renamed endpoint to endpointDefinition or endpointName everywhere to be more consistent.

Hope I didn't change a public API with it 😅 (apart from serializeQueryArgs)

@msutkowski could you take a look at this? Also, @gfortaine, can you please test if this would solve your problem?

…Args, rename endpoint to endpointName or endpointDefinition everywhere
@github-actions
Copy link

github-actions bot commented Jan 24, 2021

size-limit report 📦

Path Size
ESM full 9.77 KB (-0.4% 🔽)
ESM full (React) 10.84 KB (-0.38% 🔽)
createApi + setupListeners 8.88 KB (-0.45% 🔽)
createApi (React) + setupListeners 9.85 KB (-0.44% 🔽)
fetchBaseQuery 654 B (0%)
retry 271 B (0%)
ApiProvider 400 B (0%)
CJS minfied 15.11 KB (-0.3% 🔽)
CJS React minfied 16.37 KB (-0.23% 🔽)

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jan 24, 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 68bfbeb:

Sandbox Source
React Configuration
React Typescript Configuration
rtk-query-demo Configuration
svelte-app-rtk-simplequery-demo Configuration

Copy link
Member

@msutkowski msutkowski left a comment

Choose a reason for hiding this comment

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

Looks good. I didn't realize how confusing having endpoint be both the name or the definition was until I read this 🗡️

src/core/buildInitiate.ts Outdated Show resolved Hide resolved
@phryneas
Copy link
Collaborator Author

Same 😅

@msutkowski msutkowski self-requested a review January 24, 2021 18:32
@gfortaine
Copy link
Contributor

@phryneas We do confirm that it solves our problem 👍 : https://codesandbox.io/s/rtk-query-demo-forked-hd08r?file=/src/app/services/posts.ts

@phryneas phryneas merged commit e0466df into next Jan 25, 2021
@phryneas phryneas deleted the remove-internalQueryArgs branch January 25, 2021 07:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants