mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-30 23:04:59 +08:00
rename folder
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Utilize Apollo Client's caching capabilities to improve performance.
|
||||
globs: src/**/*.js
|
||||
---
|
||||
- Utilize Apollo Client's caching capabilities
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Instructs to implement custom hooks for Apollo operations.
|
||||
globs: src/hooks/**/*.js
|
||||
---
|
||||
- Implement custom hooks for Apollo operations
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Suggests the use of Apollo Client DevTools for debugging.
|
||||
globs: src/**/*.js
|
||||
---
|
||||
- Use Apollo Client DevTools for debugging
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Requires the use of Apollo Provider at the root of the application.
|
||||
globs: src/App.jsx
|
||||
---
|
||||
- Use Apollo Provider at the root of your app
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
---
|
||||
description: Applies best practices for GraphQL and Apollo Client usage, including state management, data fetching, and error handling.
|
||||
globs: src/graphql/**/*.js
|
||||
---
|
||||
- Use Apollo Client for state management and data fetching
|
||||
- Implement query components for data fetching
|
||||
- Utilize mutations for data modifications
|
||||
- Use fragments for reusable query parts
|
||||
- Implement proper error handling and loading states
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Requires the implementation of proper error boundaries for GraphQL errors.
|
||||
globs: src/**/*.jsx
|
||||
---
|
||||
- Implement proper error boundaries for GraphQL errors
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Requires following naming conventions for queries, mutations, and fragments.
|
||||
globs: src/graphql/**/*.js
|
||||
---
|
||||
- Follow naming conventions for queries, mutations, and fragments
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Enforces the use of TypeScript for type safety with GraphQL operations.
|
||||
globs: src/graphql/**/*.ts
|
||||
---
|
||||
- Use TypeScript for type safety with GraphQL operations
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Enforces the use of functional components with hooks in React components.
|
||||
globs: src/components/**/*.jsx
|
||||
---
|
||||
- Always use functional components with hooks instead of class components.
|
||||
Reference in New Issue
Block a user