Skip to main content

api-patterns

Connect Query patterns for API calls. Use when working with mutations, queries, or data fetching.

Quellinformationen

Repository
redpanda-data/console
Letzte Quellaktivität
17. Februar 2026 um 19:13
Erkannte Sprache von SKILL.md
Englisch
Sterne
4.353
Forks
435

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

Datei-Explorer
5 Dateien

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
name
api-patterns
description
Connect Query patterns for API calls. Use when working with mutations, queries, or data fetching.
# API Patterns Make API calls with Connect Query and handle responses properly. ## Activation Conditions - Making API calls - Using Connect Query hooks - Cache invalidation - Mutations and optimistic updates - Toast notifications for errors ## Quick Reference | Action | Rule | |--------|------| | Fetch data | `use-connect-query.md` | | After mutation | `api-invalidate-cache.md` | | Handle errors | `api-toast-errors.md` (use `formatToastErrorMessage` in onError) | | Protobuf files | `protobuf-no-edit.md` | ## Key Locations | Location | Purpose | |----------|---------| | `/src/react-query/` | Connect Query hooks | | `/src/protogen/` | Generated protos (DO NOT EDIT) | Regenerate protos: `task proto:generate` (from repo root) ## Rules See `rules/` directory for detailed guidance on queries, mutations, cache invalidation, and error handling.
Auf GitHub ansehen