// React + React Query .cursorrules
Add this skill
npx mdskills install PatrickJS/cursor-react-queryOutlines React Query conventions but lacks actionable agent instructions and trigger conditions
1// React + React Query .cursorrules23// Prefer functional components with hooks45const preferFunctionalComponents = true;67// React Query best practices89const reactQueryBestPractices = [10 "Use QueryClient and QueryClientProvider at the root of your app",11 "Implement custom hooks for queries and mutations",12 "Utilize query keys for effective caching",13 "Use prefetching for improved performance",14 "Implement proper error and loading states",15];1617// Folder structure1819const folderStructure = `20src/21 components/22 hooks/23 useQueries/24 useMutations/25 pages/26 utils/27 api/28`;2930// Additional instructions3132const additionalInstructions = `331. Use TypeScript for type safety with React Query342. Implement proper error boundaries for query errors353. Utilize React Query DevTools for debugging364. Use stale-while-revalidate strategy for data freshness375. Implement optimistic updates for mutations386. Use query invalidation for data refetching397. Follow React Query naming conventions for consistency40`;4142
Full transparency — inspect the skill content before installing.