Skip to content

Conversation

@stijnvanhulle
Copy link
Collaborator

Add useSuspenseInfiniteQuery hook generation to support React Suspense with infinite queries in TanStack Query v5+.


Open in Cursor Open in Web

@cursor
Copy link

cursor bot commented Nov 21, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@changeset-bot
Copy link

changeset-bot bot commented Nov 21, 2025

🦋 Changeset detected

Latest commit: fee1a41

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 19 packages
Name Type
@kubb/plugin-react-query Minor
@kubb/mcp Minor
@kubb/cli Minor
@kubb/core Minor
@kubb/oas Minor
@kubb/plugin-client Minor
@kubb/plugin-cypress Minor
@kubb/plugin-faker Minor
@kubb/plugin-mcp Minor
@kubb/plugin-msw Minor
@kubb/plugin-oas Minor
@kubb/plugin-redoc Minor
@kubb/plugin-solid-query Minor
@kubb/plugin-svelte-query Minor
@kubb/plugin-swr Minor
@kubb/plugin-ts Minor
@kubb/plugin-vue-query Minor
@kubb/plugin-zod Minor
kubb Patch

Not sure what this means? Click here to learn what changesets are.

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

@kubb-labs-dev
Copy link

kubb-labs-dev bot commented Nov 21, 2025

The preview deployment for kubb-labs/kubb:main is ready. 🟢

Open Preview | Open Build Logs

Last updated at: 2025-11-21 23:47:09 CET

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 21, 2025

Important

Review skipped

Draft detected.

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.

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

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch cursor/create-feature-pull-request-from-github-context-3094

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.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 21, 2025

More templates

@kubb/cli

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/cli@2036

@kubb/core

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/core@2036

kubb

npm i https://pkg.pr.new/kubb-labs/kubb@2036

@kubb/mcp

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/mcp@2036

@kubb/oas

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/oas@2036

@kubb/plugin-client

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-client@2036

@kubb/plugin-cypress

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-cypress@2036

@kubb/plugin-faker

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-faker@2036

@kubb/plugin-mcp

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-mcp@2036

@kubb/plugin-msw

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-msw@2036

@kubb/plugin-oas

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-oas@2036

@kubb/plugin-react-query

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-react-query@2036

@kubb/plugin-redoc

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-redoc@2036

@kubb/plugin-solid-query

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-solid-query@2036

@kubb/plugin-svelte-query

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-svelte-query@2036

@kubb/plugin-swr

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-swr@2036

@kubb/plugin-ts

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-ts@2036

@kubb/plugin-vue-query

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-vue-query@2036

@kubb/plugin-zod

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-zod@2036

unplugin-kubb

npm i https://pkg.pr.new/kubb-labs/kubb/unplugin-kubb@2036

commit: fee1a41

@codecov
Copy link

codecov bot commented Nov 21, 2025

Codecov Report

❌ Patch coverage is 65.83851% with 55 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.80%. Comparing base (20928c0) to head (fee1a41).

Files with missing lines Patch % Lines
...ry/src/components/SuspenseInfiniteQueryOptions.tsx 56.25% 27 Missing and 1 partial ⚠️
...act-query/src/components/SuspenseInfiniteQuery.tsx 52.17% 21 Missing and 1 partial ⚠️
.../src/generators/suspenseInfiniteQueryGenerator.tsx 90.19% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2036      +/-   ##
==========================================
- Coverage   80.27%   79.80%   -0.47%     
==========================================
  Files         133      136       +3     
  Lines        4876     5037     +161     
  Branches     2033     2146     +113     
==========================================
+ Hits         3914     4020     +106     
- Misses        868      921      +53     
- Partials       94       96       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@stijnvanhulle
Copy link
Collaborator Author

@cursor add changelog with pnpm changeset and minor version. Also update changelog.md in docs

@cursor
Copy link

cursor bot commented Nov 21, 2025

Create PR

Perfect! Let me create a summary of what was done:

Summary

I've successfully added a changeset with a minor version bump (4.6.0) and updated the changelog documentation as requested.

Changes Made:

1. Created Changeset File (.changeset/suspense-infinite-query-support.md):

  • Set version bump to minor for @kubb/plugin-react-query
  • Documented the new useSuspenseInfiniteQuery feature
  • Included usage example and key features
  • Follows the changesets format for automatic version management

2. Updated Changelog (docs/changelog.md):

  • Added new section for version 4.6.0
  • Documented the new feature with bullet points covering:
    • Main feature: useSuspenseInfiniteQuery hook generation
    • Support for cursor-based and offset-based pagination
    • TypeScript type safety
    • Automatic validation
    • Example hook name

3. Cleaned Up:

  • Removed the temporary FEATURE_IMPLEMENTATION.md file

What the Changeset Does:

When the PR is merged, the changeset will:

  • Automatically bump @kubb/plugin-react-query to version 4.6.0 (minor version)
  • Generate release notes based on the changeset content
  • Update all dependent packages that reference @kubb/plugin-react-query
  • Create a GitHub release with the documented changes

The changeset bot should now recognize this PR has a proper changeset and the warning will be resolved.


Open in Cursor Open in Web

Learn more about Cursor Agents

@stijnvanhulle stijnvanhulle changed the title Create feature pull request from github context UseSuspenseInfiniteQuery Nov 22, 2025
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.

3 participants