query icon indicating copy to clipboard operation
query copied to clipboard

typo react /vue in documentation

Open martinTabobine opened this issue 3 months ago โ€ข 3 comments

๐ŸŽฏ Changes

In the documentation for vue framework, the exemple in API Reference / QueryClient use import from '@tanstack/react-query' instead of '@tanstack/vuequery'

โœ… Checklist

  • X I have followed the steps in the Contributing guide.
  • [ ] I have tested this code locally with pnpm run test:pr.

๐Ÿš€ Release Impact

  • [ ] This change affects published code, and I have generated a changeset.
  • X This change is docs/CI/dev-only (no release).

Summary by CodeRabbit

  • Documentation
    • Updated QueryClient reference documentation examples with current library imports.

martinTabobine avatar Nov 10 '25 16:11 martinTabobine

โš ๏ธ No Changeset found

Latest commit: b5f1d12543269d38fe226e60415fabf32ff87e19

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar Nov 10 '25 16:11 changeset-bot[bot]

Walkthrough

Documentation example updated to import QueryClient from @tanstack/vue-query instead of @tanstack/react-query. The import namespace is corrected to reflect Vue Query usage; no functional logic is modified.

Changes

Cohort / File(s) Change Summary
Documentation Import Update
docs/reference/QueryClient.md
Import statement changed from @tanstack/react-query to @tanstack/vue-query for correct Vue library reference

Estimated code review effort

๐ŸŽฏ 1 (Trivial) | โฑ๏ธ ~2 minutes

  • Single import namespace update in documentation with no logic changes
  • No functional impact; documentation accuracy improvement only

Poem

๐Ÿฐ From React's realm to Vue's bright shore,
An import line found its way home once more,
QueryClient hops to the right package door,
Documentation now shines, clean to the core! โœจ

Pre-merge checks and finishing touches

โœ… Passed checks (3 passed)
Check name Status Explanation
Title check โœ… Passed The title accurately identifies the main change: correcting a React import reference to Vue in the documentation.
Description check โœ… Passed The description follows the template structure with all required sections completed, clearly explaining the Vue documentation import fix and marking it as docs-only.
Docstring Coverage โœ… Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
โœจ Finishing touches
๐Ÿงช Generate unit tests (beta)
  • [ ] Create PR with unit tests
  • [ ] Post copyable unit tests in a comment

๐Ÿ“œ Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

๐Ÿ“ฅ Commits

Reviewing files that changed from the base of the PR and between f7c952613a049bae93bb9521352dc362a7d3bddd and b5f1d12543269d38fe226e60415fabf32ff87e19.

๐Ÿ“’ Files selected for processing (1)
  • docs/reference/QueryClient.md (1 hunks)
๐Ÿงฐ Additional context used
๐Ÿง  Learnings (2)
๐Ÿ““ Common learnings
Learnt from: TkDodo
Repo: TanStack/query PR: 9612
File: packages/query-async-storage-persister/src/asyncThrottle.ts:0-0
Timestamp: 2025-09-02T17:57:33.184Z
Learning: When importing from tanstack/query-core in other TanStack Query packages like query-async-storage-persister, a workspace dependency "tanstack/query-core": "workspace:*" needs to be added to the package.json.
๐Ÿ“š Learning: 2025-09-02T17:57:33.184Z
Learnt from: TkDodo
Repo: TanStack/query PR: 9612
File: packages/query-async-storage-persister/src/asyncThrottle.ts:0-0
Timestamp: 2025-09-02T17:57:33.184Z
Learning: When importing from tanstack/query-core in other TanStack Query packages like query-async-storage-persister, a workspace dependency "tanstack/query-core": "workspace:*" needs to be added to the package.json.

Applied to files:

  • docs/reference/QueryClient.md
๐Ÿ”‡ Additional comments (1)
docs/reference/QueryClient.md (1)

11-11: Correct import for Vue Query documentation.

The import statement has been fixed to reference @tanstack/vue-query instead of @tanstack/react-query, ensuring Vue developers copying this example get the correct package import for their framework. The rest of the code example remains valid since QueryClient has the same API across all TanStack Query framework adapters.


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 and usage tips.

coderabbitai[bot] avatar Nov 10 '25 16:11 coderabbitai[bot]

This is unfortunately a wrong file to change. We need to create a vue specific override for this page.

DamianOsipiuk avatar Nov 13 '25 13:11 DamianOsipiuk