Skip to main content

api-patterns

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

Informations de source

Dépôt
redpanda-data/console
Dernière activité de la source
17 février 2026 à 19:13
Langue détectée de SKILL.md
anglais
Étoiles
4 336
Forks
431

Options d'installation

Le prompt qui vérifie d'abord la source est sélectionné par défaut. Vous pouvez passer à une commande directe ou télécharger une copie locale.

Vérifiez les fichiers source

Lisez SKILL.md et les fichiers associés affichés par SkillsMP avant de décider de l'installer.

Explorateur de fichiers
5 fichiers

Affichage de SKILL.md

SKILL.md
Instructions source · Aperçu en lecture seule
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.
Voir sur GitHub