Skip to content

fix(react): switch to export type * - #11228

Merged
TkDodo merged 1 commit into
mainfrom
tkdodo/fix/export-type
Aug 18, 2026
Merged

fix(react): switch to export type *#11228
TkDodo merged 1 commit into
mainfrom
tkdodo/fix/export-type

Conversation

@TkDodo

@TkDodoTkDodo commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • Bug Fixes

    • Corrected React Query type exports so they no longer create unnecessary runtime imports.
    • Preserved access to the exported TypeScript types without affecting runtime behavior.
  • Documentation

    • Added a patch release note describing the type-only export improvement.

@nx-cloud

nx-cloudBot commented Aug 18, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit c6c56ba

CommandStatusDurationResult
nx affected --targets=test:sherif,test:knip,tes...✅ Succeeded4m 24sView ↗
nx run-many --target=build --exclude=examples/*...✅ Succeeded7sView ↗

☁️ Nx Cloud last updated this comment at 2026-08-18 19:19:15 UTC

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Changeset Version Preview

9 package(s) bumped directly, 16 bumped as dependents.

🟨 Minor bumps

PackageVersionReason
@tanstack/angular-query-experimental5.101.4 → 5.102.0Changeset
@tanstack/eslint-plugin-query5.101.4 → 5.102.0Changeset
@tanstack/preact-query5.101.4 → 5.102.0Changeset
@tanstack/query-core5.101.4 → 5.102.0Changeset
@tanstack/react-query5.101.4 → 5.102.0Changeset
@tanstack/solid-query5.101.4 → 5.102.0Changeset
@tanstack/vue-query5.101.4 → 5.102.0Changeset
@tanstack/angular-query-persist-client5.101.4 → 5.102.0Dependent
@tanstack/preact-query-devtools5.101.4 → 5.102.0Dependent
@tanstack/preact-query-persist-client5.101.4 → 5.102.0Dependent
@tanstack/query-async-storage-persister5.101.4 → 5.102.0Dependent
@tanstack/query-broadcast-client-experimental5.101.4 → 5.102.0Dependent
@tanstack/query-devtools5.101.4 → 5.102.0Dependent
@tanstack/query-persist-client-core5.101.4 → 5.102.0Dependent
@tanstack/query-sync-storage-persister5.101.4 → 5.102.0Dependent
@tanstack/react-query-devtools5.101.4 → 5.102.0Dependent
@tanstack/react-query-next-experimental5.101.4 → 5.102.0Dependent
@tanstack/react-query-persist-client5.101.4 → 5.102.0Dependent
@tanstack/solid-query-devtools5.101.4 → 5.102.0Dependent
@tanstack/solid-query-persist-client5.101.4 → 5.102.0Dependent

🟩 Patch bumps

PackageVersionReason
@tanstack/lit-query0.2.11 → 0.2.12Changeset
@tanstack/svelte-query6.1.38 → 6.1.39Changeset
@tanstack/svelte-query-devtools6.1.38 → 6.1.39Dependent
@tanstack/svelte-query-persist-client6.1.38 → 6.1.39Dependent
@tanstack/vue-query-devtools6.1.38 → 6.1.39Dependent

@coderabbitai

coderabbitaiBot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 4afa39f4-02ed-4a9d-aa07-d4e33878d6e8

📥 Commits

Reviewing files that changed from the base of the PR and between 5981771 and c6c56ba.

📒 Files selected for processing (2)
  • .changeset/quiet-types-import.md
  • packages/react-query/src/index.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.


📝 Walkthrough

Walkthrough

The React Query package changes its ./types re-export to type-only syntax. A patch changeset documents that type-only exports no longer produce runtime imports.

Changes

React Query type exports

Layer / File(s)Summary
Type-only re-export
packages/react-query/src/index.ts, .changeset/quiet-types-import.md
The package preserves type exports from ./types without runtime re-exports. The changeset documents the patch release.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk:⚪ Minimal · up to c6c56

This is a localized type-export change with no actionable merge-blocking risk remaining; it is merge-ready after normal checks and review.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check nameStatusExplanationResolution
Description check⚠️ WarningNo pull request description was provided, so the required changes, checklist, and release impact sections are missing.Add the required template sections, describe the change and motivation, complete the checklist, and indicate the release impact and changeset.
✅ Passed checks (4 passed)
Check nameStatusExplanation
Title check✅ PassedThe title clearly and concisely describes the main change from a runtime export to a type-only export.
Docstring Coverage✅ PassedNo functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch tkdodo/fix/export-type

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

Comment @coderabbitai help to get the list of available commands.

@pkg-pr-new

Copy link
Copy Markdown
More templates

@tanstack/angular-query-experimental

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

@tanstack/eslint-plugin-query

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

@tanstack/lit-query

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

@tanstack/preact-query

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

@tanstack/preact-query-devtools

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

@tanstack/preact-query-persist-client

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

@tanstack/query-async-storage-persister

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

@tanstack/query-broadcast-client-experimental

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

@tanstack/query-core

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

@tanstack/query-devtools

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

@tanstack/query-persist-client-core

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

@tanstack/query-sync-storage-persister

npm i https://pkg.pr.new/@tanstack/query-sync-storage-persister@11228

@tanstack/react-query

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

@tanstack/react-query-devtools

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

@tanstack/react-query-next-experimental

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

@tanstack/react-query-persist-client

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

@tanstack/solid-query

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

@tanstack/solid-query-devtools

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

@tanstack/solid-query-persist-client

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

@tanstack/svelte-query

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

@tanstack/svelte-query-devtools

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

@tanstack/svelte-query-persist-client

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

@tanstack/vue-query

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

@tanstack/vue-query-devtools

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

commit: c6c56ba

@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

PathSize
react full12.29 KB (0%)
react minimal9.23 KB (0%)

@TkDodo
TkDodo merged commit fb6c3fa into mainAug 18, 2026
9 checks passed
@TkDodo
TkDodo deleted the tkdodo/fix/export-type branch August 18, 2026 19:20
@github-actionsgithub-actionsBot mentioned this pull request Aug 18, 2026
Sign up for freeto 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

@TkDodo