convex-realtime
46. 使用Convex反应查询实现实时功能,当数据更改时自动更新,实现实时协作、即时更新和无需手动轮询的反应式UI。用于构建实时仪表板、实现协作编辑、创建聊天应用程序、显示实时通知、构建活动馈送、实现存在指示器、创建反应式搜索或任何需要客户端间即时数据同步的功能时使用。
📖 中文导读:46. 使用Convex反应查询实现实时功能,当数据更改时自动更新,实现实时协作、即时更新和无需手动轮询的反应式UI。用于构建实时仪表板、实现协作编辑、创建聊天应用程序、显示实时通知、构建活动馈送、实现存在指示器、创建反应式搜索或任何需要客户端间即时数据同步的功能时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: convex-realtime description: Implement real-time features using Convex reactive queries that automatically update when data changes, enabling live collaboration, instant updates, and reactive UIs without manual polling. Use when building live dashboards, implementing collaborative editing, creating chat applications, showing real-time notifications, building activity feeds, implementing presence indicators, creating reactive search, or any feature requiring instant data synchronization across clients.
Convex Realtime - Live Data Subscriptions
When to use this skill
- Building live dashboards that update instantly
- Implementing collaborative editing features
- Creating real-time chat applications
- Showing instant notifications to users
- Building activity feeds that update live
- Implementing user presence indicators
- Creating reactive search with live results
- Building multiplayer or collaborative features
- Showing real-time analytics and metrics
- Implementing live document collaboration
- Creating real-time forms with validation
- Building features requiring instant synchronization
When to use this skill
- Building realtime features, live updates, collaborative apps.
- When working on related tasks or features
- During development that requires this expertise
Use when: Building realtime features, live updates, collaborative apps.
Auto-Updating Queries
```typescript const messages = useQuery(api.messages.list, { channelId }); // Automatically updates when data changes! ```