Skip to main content

api-patterns

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

来源信息

仓库
redpanda-data/console
最近来源活动
2026年2月17日 19:13
检测到的 SKILL.md 语言
英语
星标
4,336
分支
431

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
5 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
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.
在 GitHub 查看