AcademyRulesDevelopment

React + TanStack Router + Query rules for Cursor

Front-end teams building single-page apps in Cursor who want routing and server data to work together in a typed way.

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

Loading the file...

What it does

A detailed Cursor rules file for type-safe single-page apps built with React, TanStack Router, TanStack Query, TypeScript and Vite. Router handles routing and URL state, Query handles server state, and loaders prefetch data into the Query cache. It includes a project layout and setup examples.

Use cases

  1. 01Set up QueryClient and the router together
  2. 02Prefetch route data in a loader
  3. 03Define reusable query options per resource

Questions about
React + TanStack Router + Query rules for Cursor.

What is React + TanStack Router + Query rules for Cursor used for?

Front-end teams building single-page apps in Cursor who want routing and server data to work together in a typed way. A detailed Cursor rules file for type-safe single-page apps built with React, TanStack Router, TanStack Query, TypeScript and Vite. Router handles routing and URL state, Query handles server state, and loaders prefetch data into the Query cache. It includes a project layout and setup examples.

How do I install React + TanStack Router + Query rules for Cursor?

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

Is React + TanStack Router + Query rules for Cursor open source?

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

Is React + TanStack Router + Query rules for Cursor 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.