Skip to content

feat(react-query): add IsMutating component - #1976

Open
fe-dudu wants to merge 5 commits into
toss:mainfrom
fe-dudu:is-mutating-component
Open

fe-dudu wants to merge 5 commits into
toss:mainfrom
fe-dudu:is-mutating-component

Conversation

@fe-dudu

@fe-dudu fe-dudu commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Overview

#1974

Add experimental <IsMutating/> to @suspensive/react-query.

This component provides a render-prop wrapper around TanStack Query’s useIsMutating, matching the existing <IsFetching/> API style. It is available for both React Query v4 and v5 packages, and exported through the version-switching @suspensive/react-query package.

Included:

  • Add <IsMutating/> to react-query-4 and react-query-5
  • Export it from @suspensive/react-query, v4, and v5
  • Add type tests and v4 runtime forwarding test
  • Add English and Korean docs
  • Add changeset for the new API

PR Checklist

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

@changeset-bot

changeset-bot Bot commented Jun 14, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 561b597

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/codemods Minor
@suspensive/jotai Minor
@suspensive/react 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

@coauthors

coauthors Bot commented Jun 14, 2026 •

Copy link
Copy Markdown

People can be co-author:

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

@vercel

vercel Bot commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

@fe-dudu is attempting to deploy a commit to the Toss Team on Vercel.

A member of the Team first needs to authorize it.

@codecov-commenter

codecov-commenter commented Jun 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.24%. Comparing base (5b76bda) to head (561b597).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1976      +/-   ##
==========================================
+ Coverage   93.22%   93.24%   +0.02%     
==========================================
  Files          42       43       +1     
  Lines         664      666       +2     
  Branches      163      163              
==========================================
+ Hits          619      621       +2     
  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% <ø> (ø)
@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.

@manudeli
manudeli requested a balanced review from Copilot September 8, 2026 07:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The implementation consistently mirrors the existing IsFetching API and includes appropriate exports, tests, documentation, and release metadata.

Pull request overview

Adds experimental <IsMutating/> render-prop support across React Query v4 and v5.

Changes:

  • Implements and exports <IsMutating/>.
  • Adds type/runtime tests and bilingual documentation.
  • Adds package-switching expectations and a minor changeset.
File summaries
File Description
packages/react-query/src/v5.ts Exports the v5 component.
packages/react-query/src/v4.ts Exports the v4 component.
packages/react-query/src/index.ts Adds the default export.
packages/react-query/src/bin/utils/package.spec.ts Updates switched-package API expectations.
packages/react-query-5/src/IsMutating.tsx Implements the v5 component.
packages/react-query-5/src/IsMutating.test-d.tsx Tests v5 API types.
packages/react-query-5/src/index.ts Exposes the v5 implementation.
packages/react-query-4/src/IsMutating.tsx Implements the v4 component.
packages/react-query-4/src/IsMutating.test-d.tsx Tests v4 API types.
packages/react-query-4/src/IsMutating.spec.tsx Tests filter and count forwarding.
packages/react-query-4/src/index.ts Exposes the v4 implementation.
docs/suspensive.org/src/content/ko/docs/react-query/IsMutating.mdx Adds Korean documentation.
docs/suspensive.org/src/content/ko/docs/react-query/_meta.tsx Adds Korean navigation metadata.
docs/suspensive.org/src/content/en/docs/react-query/IsMutating.mdx Adds English documentation.
docs/suspensive.org/src/content/en/docs/react-query/_meta.tsx Adds English navigation metadata.
.changeset/eight-wombats-bet.md Records minor package releases.
Review details
  • Files reviewed: 15/16 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

This branch has not been deployed

No deployments
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.

5 participants