convex-realtime

Build reactive apps with Convex real-time subscriptions, optimistic updates, and cursor-based pagination.

Updated Feb 1, 2026
One-click install
npx skills add https://github.com/EricJamesCrow/smartpockets --skill convex-realtime-ericjamescrow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-realtime
Source: https://github.com/EricJamesCrow/smartpockets/tree/main/.claude/skills/convex-realtime
Command: npx skills add https://github.com/EricJamesCrow/smartpockets --skill convex-realtime-ericjamescrow

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Help developers build reactive apps with Convex real-time subscriptions, optimistic updates, smart caching, and cursor-based pagination to keep UIs in sync with server state.

Core Features & Use Cases

  • Real-time subscriptions with useQuery that auto-updates
  • Optimistic updates to improve perceived performance
  • Smart caching and shared query results across components
  • Cursor-based pagination for scalable data loading
  • Practical examples and best practices for error handling and clean architecture

Quick Start

Set up Convex and start using the React client to implement real-time subscriptions, optimistic updates, and cursor-based pagination in your app.

Frequently Asked Questions about convex-realtime

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement real-time subscriptions in a React app using Convex?

Real-time subscriptions in Convex use the useQuery hook to automatically update UI components whenever server data changes. This reactive pattern keeps synchronized live data across multiple components without manual polling.

What's the best way to handle optimistic updates with Convex?

Optimistic updates with Convex improve perceived performance by applying local UI changes immediately before server confirmation. This pattern requires safe, typed integration with the Convex client and proper error handling for edge cases.

How does cursor-based pagination work with Convex real-time queries?

Cursor-based pagination in Convex enables efficient data loading by fetching subsequent pages using cursors rather than offsets. This approach maintains consistent views and smart caching during real-time subscription updates.

Can I share cached query results across multiple components using Convex?

Convex supports smart caching that shares query results across components automatically. This ensures consistent views and synchronized live data while reducing redundant server fetches within your real-time subscriptions.

Why do my Convex real-time subscriptions fail to update the UI correctly?

Convex real-time subscription failures often stem from improper error handling or edge cases in optimistic updates. Ensuring typed integration with the Convex client and following clean architecture practices resolves these synchronization issues.