AcademyRulesDevelopment

TanStack Query Rules

Front-end teams that want short, focused guidance for data fetching with TanStack Query in Cursor.

  • 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/tanstack-query.mdc -o .cursor/rules/tanstack-query.mdc
tanstack-query.mdc

Loading the file...

What it does

A compact rules file for Cursor on TanStack Query v5 with React and TypeScript. It keeps server state separate from client state, shows a query key factory and the queryOptions helper, and includes a QueryClient setup with a simple retry rule.

Use cases

  1. 01Configure a QueryClient with default options
  2. 02Define query keys for lists and detail pages
  3. 03Use queryOptions inside a route loader

Questions about
TanStack Query Rules.

What is TanStack Query Rules used for?

Front-end teams that want short, focused guidance for data fetching with TanStack Query in Cursor. A compact rules file for Cursor on TanStack Query v5 with React and TypeScript. It keeps server state separate from client state, shows a query key factory and the queryOptions helper, and includes a QueryClient setup with a simple retry rule.

How do I install TanStack Query Rules?

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

Is TanStack Query Rules open source?

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

Is TanStack Query Rules 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.