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

refactor(query-core): replace getQueryCache() with #queryCache for consistency #7175

Merged
merged 1 commit into from Mar 26, 2024

Conversation

Mini-ghost
Copy link
Contributor

I've noticed that within our queryClient implementation, we currently utilize two methods to retrieve queryCache: one is by using this.#queryCache, and the other is via this.getQueryCache().

Both approaches are functionally equivalent. To improve code consistency and readability, I have replaced instances of this.getQueryCache() with this.#queryCache internally.

This refactor does not alter the behavior of queryClient in any way. I am very open to hearing your thoughts, especially if there's something I might have overlooked.

Copy link

vercel bot commented Mar 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
query ⬜️ Ignored (Inspect) Visit Preview Mar 26, 2024 3:46am

Copy link

nx-cloud bot commented Mar 26, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit adc94bc. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


🟥 Failed Commands
nx affected --targets=test:format,test:sherif,test:knip,test:eslint,test:lib,test:types,test:build,build,test:attw --parallel=3

Sent with 💌 from NxCloud.

@Mini-ghost Mini-ghost changed the title refactor(core): replace getQueryCache() with #queryCache for consistency refactor(query-core): replace getQueryCache() with #queryCache for consistency Mar 26, 2024
Copy link

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

Sandbox Source
@tanstack/query-example-angular-basic Configuration
@tanstack/query-example-react-basic-typescript Configuration
@tanstack/query-example-solid-basic-typescript Configuration
@tanstack/query-example-svelte-basic Configuration
@tanstack/query-example-vue-basic Configuration

@TkDodo TkDodo merged commit 262794f into TanStack:main Mar 26, 2024
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants