Registry / sandgardenhq

sandgardenhq/sgai/react-sse-patterns

SSE with useSyncExternalStore, reconnection with exponential backoff, snapshot rehydration, typed event parsing, connection status UI. Use when implementing SSE data stores, real-time update hooks, or connection resilience in the React SPA. Triggers on SSE, EventSource, useSyncExternalStore, real-time updates, reconnection, or live data tasks.

Agent skill · version 0.0.0-main.1795732371.g9efbb7b · from sandgardenhq/sgai

Install

npx yarkr-cli add skill:sandgardenhq/sgai/react-sse-patterns

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:sandgardenhq/sgai/react-sse-patterns
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:sandgardenhq/sgai/react-sse-patterns

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:sandgardenhq/sgai/react-sse-patterns

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.