11 lines
519 B
Plaintext
11 lines
519 B
Plaintext
---
|
|
description: This rule lists additional instructions for using React Query, including TypeScript usage, error handling, and debugging tools.
|
|
globs: src/**/*.tsx
|
|
---
|
|
- Use TypeScript for type safety with React Query
|
|
- Implement proper error boundaries for query errors
|
|
- Utilize React Query DevTools for debugging
|
|
- Use stale-while-revalidate strategy for data freshness
|
|
- Implement optimistic updates for mutations
|
|
- Use query invalidation for data refetching
|
|
- Follow React Query naming conventions for consistency |