Skip to content

perf(query-core): simplify infinite fetch setup - #12770

Merged
TkDodo merged 1 commit into
query-v6from
tkdodo/ref/infinite-fetch-setup
Dec 5, 2026
Merged

TkDodo merged 1 commit into
query-v6from
tkdodo/ref/infinite-fetch-setup

Conversation

@TkDodo

@TkDodo TkDodo commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

🎯 Changes

Call the infinite fetch setup directly. Regular queries skip the context for page fetching and still get the cancellation signal in queryFn.

The local Size Limit check measured 35 fewer Brotli bytes in the minimal React bundle.

✅ Checklist

  • Builds, library tests, type tests, and Oxlint passed locally for core, React, Preact, Vue, and Lit.
  • The contributor has reviewed the code and the AI contribution policy.

🚀 Release Impact

  • Includes a patch changeset for query-core.

@coderabbitai

coderabbitai Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@nx-cloud

nx-cloud Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit e53daf7

Command Status Duration Result
nx affected --targets=test:sherif,test:knip,tes... ✅ Succeeded 6m 29s View ↗
nx run-many --target=build --exclude=examples/*... ✅ Succeeded 22s View ↗

☁️ Nx Cloud last updated this comment at 2026-12-05 21:31:00 UTC

@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

🚀 Changeset Version Preview

23 package(s) bumped directly, 2 bumped as dependents.

🟥 Major bumps

Package Version Reason
@tanstack/angular-query 5.108.5 → 6.0.0 Changeset
@tanstack/angular-query-devtools 5.108.5 → 6.0.0 Changeset
@tanstack/eslint-plugin-query 5.108.5 → 6.0.0 Changeset
@tanstack/lit-query 0.2.45 → 1.0.0 Changeset
@tanstack/preact-query 5.108.5 → 6.0.0 Changeset
@tanstack/preact-query-devtools 5.108.5 → 6.0.0 Changeset
@tanstack/preact-query-persist-client 5.108.5 → 6.0.0 Changeset
@tanstack/query-async-storage-persister 5.108.5 → 6.0.0 Changeset
@tanstack/query-broadcast-client-experimental 5.108.5 → 6.0.0 Changeset
@tanstack/query-core 5.108.5 → 6.0.0 Changeset
@tanstack/query-devtools 5.108.5 → 6.0.0 Changeset
@tanstack/query-persist-client-core 5.108.5 → 6.0.0 Changeset
@tanstack/react-query 5.108.5 → 6.0.0 Changeset
@tanstack/react-query-devtools 5.108.5 → 6.0.0 Changeset
@tanstack/react-query-next-experimental 5.108.5 → 6.0.0 Changeset
@tanstack/react-query-persist-client 5.108.5 → 6.0.0 Changeset
@tanstack/solid-query 5.108.5 → 6.0.0 Changeset
@tanstack/solid-query-devtools 5.108.5 → 6.0.0 Changeset
@tanstack/solid-query-persist-client 5.108.5 → 6.0.0 Changeset
@tanstack/svelte-query 6.4.8 → 7.0.0 Changeset
@tanstack/svelte-query-devtools 6.4.8 → 7.0.0 Changeset
@tanstack/vue-query 5.108.5 → 6.0.0 Changeset
@tanstack/vue-query-devtools 6.4.8 → 7.0.0 Changeset
@tanstack/angular-query-persist-client 5.108.5 → 6.0.0 Dependent
@tanstack/svelte-query-persist-client 6.4.8 → 7.0.0 Dependent

@pkg-pr-new

pkg-pr-new Bot commented Dec 5, 2026

Copy link
Copy Markdown
More templates

@tanstack/angular-query

npm i https://pkg.pr.new/@tanstack/angular-query@12770

@tanstack/angular-query-devtools

npm i https://pkg.pr.new/@tanstack/angular-query-devtools@12770

@tanstack/angular-query-persist-client

npm i https://pkg.pr.new/@tanstack/angular-query-persist-client@12770

@tanstack/eslint-plugin-query

npm i https://pkg.pr.new/@tanstack/eslint-plugin-query@12770

@tanstack/lit-query

npm i https://pkg.pr.new/@tanstack/lit-query@12770

@tanstack/preact-query

npm i https://pkg.pr.new/@tanstack/preact-query@12770

@tanstack/preact-query-devtools

npm i https://pkg.pr.new/@tanstack/preact-query-devtools@12770

@tanstack/preact-query-persist-client

npm i https://pkg.pr.new/@tanstack/preact-query-persist-client@12770

@tanstack/query-async-storage-persister

npm i https://pkg.pr.new/@tanstack/query-async-storage-persister@12770

@tanstack/query-broadcast-client-experimental

npm i https://pkg.pr.new/@tanstack/query-broadcast-client-experimental@12770

@tanstack/query-core

npm i https://pkg.pr.new/@tanstack/query-core@12770

@tanstack/query-devtools

npm i https://pkg.pr.new/@tanstack/query-devtools@12770

@tanstack/query-persist-client-core

npm i https://pkg.pr.new/@tanstack/query-persist-client-core@12770

@tanstack/react-query

npm i https://pkg.pr.new/@tanstack/react-query@12770

@tanstack/react-query-devtools

npm i https://pkg.pr.new/@tanstack/react-query-devtools@12770

@tanstack/react-query-next-experimental

npm i https://pkg.pr.new/@tanstack/react-query-next-experimental@12770

@tanstack/react-query-persist-client

npm i https://pkg.pr.new/@tanstack/react-query-persist-client@12770

@tanstack/solid-query

npm i https://pkg.pr.new/@tanstack/solid-query@12770

@tanstack/solid-query-devtools

npm i https://pkg.pr.new/@tanstack/solid-query-devtools@12770

@tanstack/solid-query-persist-client

npm i https://pkg.pr.new/@tanstack/solid-query-persist-client@12770

@tanstack/svelte-query

npm i https://pkg.pr.new/@tanstack/svelte-query@12770

@tanstack/svelte-query-devtools

npm i https://pkg.pr.new/@tanstack/svelte-query-devtools@12770

@tanstack/svelte-query-persist-client

npm i https://pkg.pr.new/@tanstack/svelte-query-persist-client@12770

@tanstack/vue-query

npm i https://pkg.pr.new/@tanstack/vue-query@12770

@tanstack/vue-query-devtools

npm i https://pkg.pr.new/@tanstack/vue-query-devtools@12770

commit: e53daf7

@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
react full 12.51 KB (-0.04% 🔽)
react minimal 7.89 KB (-0.44% 🔽)
react typical 9.1 KB (-0.26% 🔽)

@TkDodo
TkDodo marked this pull request as ready for review December 5, 2026 21:29
@TkDodo
TkDodo merged commit def0bee into query-v6 Dec 5, 2026
8 checks passed
@TkDodo
TkDodo deleted the tkdodo/ref/infinite-fetch-setup branch December 5, 2026 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant