AcademyRulesDevelopment

React + TanStack Router + Query rules (compact)

Front-end teams using Cursor who want a brief ruleset for pairing TanStack Router with TanStack Query.

  • Recommendedour rating
  • 40,892repository stars
  • CC0-1.0licence
  • 6 months agolast update
mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/react-tanstack-router-query.mdc -o .cursor/rules/react-tanstack-router-query-2.mdc
react-tanstack-router-query-2.mdc

Loading the file...

AI workshops

Want your team working like this?

Hands-on workshops where your team learns to use AI coding agents, skills and automations on its own work, not on toy examples.

  • Free 20-minute call to plan the session
  • Built around your team's real tasks
  • In English or Spanish, on site in Barcelona or online

What it does

A shorter Cursor rules file for React apps using TanStack Router, TanStack Query, TypeScript and Vite. It describes the split between routing and server state, with loaders prefetching into the Query cache. It shows compact setup, query definitions and a loader with a component.

Use cases

  1. 01Add a short ruleset for a TanStack project
  2. 02Create query option factories for posts or users
  3. 03Wire a loader to a component without spinners

Questions about
React + TanStack Router + Query rules (compact).

What is React + TanStack Router + Query rules (compact) used for?

Front-end teams using Cursor who want a brief ruleset for pairing TanStack Router with TanStack Query. A shorter Cursor rules file for React apps using TanStack Router, TanStack Query, TypeScript and Vite. It describes the split between routing and server state, with loaders prefetching into the Query cache. It shows compact setup, query definitions and a loader with a component.

How do I install React + TanStack Router + Query rules (compact)?

Run this in your terminal: mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/react-tanstack-router-query.mdc -o .cursor/rules/react-tanstack-router-query-2.mdc

Is React + TanStack Router + Query rules (compact) open source?

Yes. The code is on GitHub (PatrickJS/awesome-cursorrules) under the CC0-1.0 licence.

Is React + TanStack Router + Query rules (compact) safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.