Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(react-query): backport v5 apis about infinite query#9334

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
manudeli wants to merge4 commits intoTanStack:v4
base:v4
Choose a base branch
Loading
frommanudeli:react-query/backport-infinite-query

Conversation

manudeli
Copy link
Collaborator

@manudelimanudeli commentedJun 29, 2025
edited
Loading

New Features and Utilities:

  • AddedinfiniteQueryOptions
  • AddeduseSuspenseInfiniteQuery

Deprecations:

  • Marked several overloads ofuseQuery anduseInfiniteQuery as deprecated, with a note that they will be removed in the next major version. (packages/react-query/src/useQuery.ts,packages/react-query/src/useInfiniteQuery.ts)

Package and Export Updates:

  • ExporteduseSuspenseInfiniteQuery,infiniteQueryOptions, and related types from the main package index.

WooWan reacted with thumbs up emojiWooWan reacted with heart emojiWooWan reacted with rocket emoji
@manudelimanudeli self-assigned thisJun 29, 2025
@nx-cloudNx Cloud
Copy link

nx-cloudbot commentedJun 29, 2025
edited
Loading

View yourCI Pipeline Execution ↗ for commit91170ba

CommandStatusDurationResult
nx affected --targets=test:lib,test:types,test:...✅ Succeeded3h 1m 36sView ↗
nx affected --targets=test:lib --base=7e5e9f5f0...✅ Succeeded<1sView ↗

☁️Nx Cloud last updated this comment at2025-07-16 12:38:25 UTC

@manudelimanudeliforce-pushed thereact-query/backport-infinite-query branch from5b39d68 to8e281a9CompareJuly 16, 2025 06:06
…s for useSuspenseInfiniteQuery- Refactored infinite query tests to use a unified options function.- Added type checks for the new `useSuspenseInfiniteQuery` hook.- Improved test structure for better readability and maintainability.
@manudelimanudeli requested a review fromCopilotJuly 16, 2025 09:14
Copilot

This comment was marked as outdated.

…in useInfiniteQuery and useSuspenseInfiniteQuery- Standardized spacing in deprecated JSDoc comments for clarity.- Reorganized type imports in useSuspenseInfiniteQuery for better readability.
@manudelimanudeli requested a review fromCopilotJuly 16, 2025 09:25
Copilot

This comment was marked as outdated.

…nts across query methods- Unified formatting of deprecated JSDoc comments in QueryCache, QueryClient, and types to enhance clarity.- Updated comments to reflect upcoming changes in method signatures and usage.
@manudelimanudeli requested a review fromCopilotJuly 16, 2025 09:35
Copy link

@CopilotCopilotAI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Pull Request Overview

This PR backports v5 infinite query APIs into the v4 codebase, introducing new utilities and marking older overloads as deprecated.

  • Added a newuseSuspenseInfiniteQuery hook with built-in suspense and error boundary support
  • Introduced theinfiniteQueryOptions helper for building infinite query option objects
  • Updated deprecation messages on varioususeQuery anduseInfiniteQuery overloads and consolidated exports

Reviewed Changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated 2 comments.

Show a summary per file
FileDescription
packages/react-query/src/useSuspenseInfiniteQuery.tsAddeduseSuspenseInfiniteQuery hook
packages/react-query/src/useQuery.tsExpanded deprecation messages onuseQuery overloads
packages/react-query/src/useInfiniteQuery.tsExpanded deprecation messages onuseInfiniteQuery overloads
packages/react-query/src/queryOptions.tsWrappedUndefinedInitialDataOptions inWithRequired
packages/react-query/src/infiniteQueryOptions.tsCreatedinfiniteQueryOptions utility
packages/react-query/src/index.tsExported new hook and options utility
packages/react-query/src/tests/useSuspenseInfiniteQuery.types.test.tsxAdded type tests foruseSuspenseInfiniteQuery
packages/react-query/src/tests/queryOptions.types.test.tsxUpdatedqueryOptions tests withuseQuery
packages/react-query/src/tests/infiniteQueryOptions.types.test.tsxAdded type tests forinfiniteQueryOptions
packages/react-query/src/tests/infiniteQueryOptions.test.tsxAdded runtime test forinfiniteQueryOptions
packages/query-core/src/types.tsConsolidated deprecated comments into single lines
packages/query-core/src/queryClient.tsConsolidated deprecated comments into single lines
packages/query-core/src/queryCache.tsConsolidated deprecated comments into single lines
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported
Comments suppressed due to low confidence (1)

packages/react-query/src/useSuspenseInfiniteQuery.ts:44

  • [nitpick] Consider adding a JSDoc comment aboveuseSuspenseInfiniteQuery to explain its purpose, parameters, and return type for better discoverability and maintainability.
export function useSuspenseInfiniteQuery<

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

Assignees

@manudelimanudeli

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@manudeli

[8]ページ先頭

©2009-2025 Movatter.jp