rdc-manager

Manage global side effects via @data-client Manager interface with Middleware and Controller.

2.0k|99|Updated Feb 15, 2019
One-click install
npx skills add https://github.com/reactive/data-client --skill rdc-manager
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rdc-manager
Source: https://github.com/reactive/data-client/tree/main/.cursor/skills/rdc-manager
Command: npx skills add https://github.com/reactive/data-client --skill rdc-manager

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Centralized management of side effects across an application can become error-prone when multiple modules dispatch actions and rely on inconsistent lifecycles. Managers provide singletons that orchestrate global behavior like websockets, SSE, polling, subscriptions, logging, and middleware, coordinating with the central data store via Controller.

Core Features & Use Cases

  • Singleton Managers: provide global side-effect handling across the app and lifecycle management.
  • Controller integration: dispatch and read state via the official Controller API.
  • Support for common patterns: websocket, SSE, polling, subscriptions, logging, and middleware that run across the app.

Quick Start

Create a custom TimeManager that registers a Middleware to periodically emit time updates through the store.

Frequently Asked Questions about rdc-manager

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

FAQPage Schema
How do I manage global websocket and SSE side effects in a data-client app?

You can manage global websocket and SSE side effects by implementing a Manager interface that coordinates middleware, cleanup, and Controller dispatchers to interact centrally with the data-client store.

What is a singleton manager for centralized side-effect orchestration?

A singleton manager is a global instance that orchestrates side-effect lifecycles like polling, subscriptions, and logging, coordinating with the central data store via the Controller API.

How do I create a custom manager to periodically dispatch actions to a store?

To periodically dispatch actions, create a custom manager that registers a Middleware to emit updates through the store using Controller dispatchers and supported actionTypes.

Does rdc-manager require external dependencies for middleware integration?

No, rdc-manager operates without external dependencies, implementing its own Manager interface with Middleware, cleanup, and Controller dispatchers to interact directly with the store.

Can I use a manager to handle logging and polling across my entire application?

Yes, singleton managers support common global patterns including polling, logging, subscriptions, SSE, and websocket interactions, ensuring consistent behavior across the entire application.

Why does my centralized data-client middleware cause inconsistent lifecycle errors?

Inconsistent lifecycle errors occur when multiple modules dispatch actions independently; using a singleton manager centralizes orchestration of websocket, SSE, and polling to resolve this.