Skip to content

feat(react-query): add 'Hydrate' to react-query-4 and 'HydrationBoundary' to react-query-5#1933

Open
sukvvon wants to merge 13 commits intotoss:mainfrom
sukvvon:feat/add-hydrate-and-hydration-boundary
Open

feat(react-query): add 'Hydrate' to react-query-4 and 'HydrationBoundary' to react-query-5#1933
sukvvon wants to merge 13 commits intotoss:mainfrom
sukvvon:feat/add-hydrate-and-hydration-boundary

Conversation

@sukvvon
Copy link
Copy Markdown
Contributor

@sukvvon sukvvon commented Mar 25, 2026

Overview

Just as @suspensive/react provides a better experience with the same naming as React's Suspense, @suspensive/react-query should also provide components that match the API names of TanStack Query.

  • @suspensive/react-query-4: add <Hydrate/> (matches Hydrate from @tanstack/react-query v4)
  • @suspensive/react-query-5: add <HydrationBoundary/> (matches HydrationBoundary from @tanstack/react-query v5)
  • Deprecate QueriesHydration as an alias for Hydrate (v4) / HydrationBoundary (v5)

PR Checklist

  • I did below actions if need
  1. I read the Contributing Guide
  2. I added documents and tests.

@coauthors
Copy link
Copy Markdown

coauthors bot commented Mar 25, 2026

People can be co-author:

Candidate Reasons Count Add this as commit message
@sukvvon #1933 1 Co-authored-by: sukvvon <66409882+sukvvon@users.noreply.github.com>
@codecov-commenter #1933 (comment) 1 Co-authored-by: codecov-commenter <65553080+codecov-commenter@users.noreply.github.com>

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Mar 25, 2026

@sukvvon is attempting to deploy a commit to the Toss Team on Vercel.

A member of the Team first needs to authorize it.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 25, 2026

🦋 Changeset detected

Latest commit: ea529aa

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

This PR includes changesets to release 6 packages
Name Type
@suspensive/react-query-4 Minor
@suspensive/react-query-5 Minor
@suspensive/react-query Minor
@suspensive/react Minor
@suspensive/jotai Minor
@suspensive/codemods Minor

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

@sukvvon sukvvon force-pushed the feat/add-hydrate-and-hydration-boundary branch from 4d1de5d to 7089128 Compare March 25, 2026 18:34
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.22%. Comparing base (c7f885f) to head (ea529aa).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1933   +/-   ##
=======================================
  Coverage   93.22%   93.22%           
=======================================
  Files          42       42           
  Lines         664      664           
  Branches      164      163    -1     
=======================================
  Hits          619      619           
  Misses         42       42           
  Partials        3        3           
Components Coverage Δ
@suspensive/react 100.00% <ø> (ø)
@suspensive/react-query 95.83% <ø> (ø)
@suspensive/react-query-4 100.00% <100.00%> (ø)
@suspensive/react-query-5 100.00% <100.00%> (ø)
@suspensive/jotai 100.00% <ø> (ø)
@suspensive/codemods 81.60% <ø> (ø)
🚀 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.

@sukvvon sukvvon marked this pull request as ready for review March 26, 2026 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: add 'Hydrate' to '@suspensive/react-query-4' and 'HydrationBoundary' to '@suspensive/react-query-5'

2 participants