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

feat: prefetch on queries #103

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

brenoliradev
Copy link

@brenoliradev brenoliradev commented Nov 12, 2024

Hey. This is a draft PR heavily inspired on: https://github.com/TanStack/query/blob/f56fc8415904d79a4658167e01a8dbbcf842bd8f/packages/query-core/src/queryClient.ts#L357

Aims to solve: #6

I tried to mimic the behavior but using queryCache.

Ps: The idea behind this PR is to start a discussion about if it's viable to prefetch in this way or not.

Copy link

netlify bot commented Nov 12, 2024

Deploy Preview for funny-banoffee-0afb46 canceled.

Name Link
🔨 Latest commit 4828e0d
🔍 Latest deploy log https://app.netlify.com/sites/funny-banoffee-0afb46/deploys/6733c6e24659a40008766cee

@brenoliradev brenoliradev marked this pull request as draft November 12, 2024 15:24
@brenoliradev brenoliradev changed the title feat: prefetch on useQuery feat: prefetch on queries Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 Triaging
Development

Successfully merging this pull request may close these issues.

1 participant