---
title: "tRPC -- Classic React Query Migration - Air Market"
description: "You are upgrading a tRPC app whose data layer sits on the older React Query package, and the newer one expects code written differently. Part of the rewrite can be done automatically, and the rest ta…"
canonical: "https://airmarket.ai/app/react-query-classic-migration"
---

[Air Market](/) / [Developer Tools](/category/devtools) / tRPC -- Classic React Query Migration

Skill by [tRPC](/@trpc)

# tRPC -- Classic React Query Migration

For tRPC apps still on the old React Query package

## What this does

You are upgrading a tRPC app whose data layer sits on the older React Query package, and the newer one expects code written differently. Part of the rewrite can be done automatically, and the rest takes deliberate edits. Reach for this when that upgrade is on your list and you want the automated run and the manual follow-up covered together.

### Top 3 things it does for you

- Run the automated upgrade on my codebase
- Move my hook-based calls to options-factory
- Replace utils.invalidate with query client invalidation

## Information

**tRPC -- Classic React Query Migration at a glance**

|  |  |
| --- | --- |
| Kind | Skill |
| Publisher | [tRPC](/@trpc) |
| Category | [Developer Tools](/category/devtools) |
| Works with | Agent Skills - an open standard supported by 40+ agents |
| Size | 6 KB |
| Licence | MIT |
| Repository | [trpc/trpc](https://github.com/trpc/trpc/tree/23c723cfeaf07da28a52a5c35c3dcccf96a47578/packages/tanstack-react-query/skills/react-query-classic-migration) |
| GitHub stars | 40,541 (as of Nov 2026) |
| Installs | 53, counted by skills.sh (Nov 2026) |

## Security report

**Verified.** AIR scanned this exact version of tRPC -- Classic React Query Migration and flagged nothing. AIR's verdict: **safe**.

**What tRPC -- Classic React Query Migration's check was run against**

|  |  |
| --- | --- |
| Commit | 23c723cfeaf07da28a52a5c35c3dcccf96a47578 |
| Content hash | 5b803d20f3eff63c1a4c6f233ea459cd7a7bf07a66a9e21125a237cd52bec41c |
| Files read | [Browse the files at this exact commit](https://github.com/trpc/trpc/blob/23c723cfeaf07da28a52a5c35c3dcccf96a47578/packages/tanstack-react-query/skills/react-query-classic-migration/SKILL.md) |

A scan is named by the exact content it read, not by a version number. A different version is a different artifact, and nothing here applies to a version AIR has not scanned.

[Read the full security report for tRPC -- Classic React Query Migration](/security/react-query-classic-migration)

## About tRPC -- Classic React Query Migration

This is for moving a tRPC project from @trpc/react-query, the classic package, to @trpc/tanstack-react-query. The first step is running npx @trpc/upgrade, a CLI that performs an automated codemod over the code.

The automated pass is not the whole job, because some patterns remain to migrate by hand: hook-based usage moves to the options-factory approach, utils.invalidate becomes queryClient.invalidateQueries with a queryFilter, and providers change. Both sides are covered here, the automated run first and the manual follow-up after.

## What's inside

- SKILL.md - instructions

## Questions

### Is tRPC -- Classic React Query Migration safe to install?

AIR scanned this exact version of tRPC -- Classic React Query Migration and flagged nothing. AIR's verdict: safe. The verdict is named by the content that was read, at commit 23c723cfeaf0, so it cannot drift onto a version nobody scanned. The full report is at https://airmarket.ai/security/react-query-classic-migration.

### How do I install tRPC -- Classic React Query Migration?

Open https://airmarket.ai/app/react-query-classic-migration on Air Market and use the install action: Air Market hands Claude a prompt naming this exact skill, and Claude sets it up. Source, pinned to the exact commit this listing describes: https://github.com/trpc/trpc/tree/23c723cfeaf07da28a52a5c35c3dcccf96a47578/packages/tanstack-react-query/skills/react-query-classic-migration. Install from that link, not the branch.

## Related on Air Market

- [More Developer Tools listings](/category/devtools)
- [Everything by tRPC](/@trpc)

---

Canonical URL: <https://airmarket.ai/app/react-query-classic-migration>
