data-client-manager
Installation
SKILL.md
Guide: Using @data-client Managers for global side effects
Managers are singletons that handle global side-effects. Kind of like useEffect() for the central data store. They interface with the store using Controller, and redux middleware is run in response to actions.
Single Responsibility
One concern per Manager; compose many small managers (e.g. transport, subscriptions, logging, auth) rather than one large one.
Every Manager defines a middleware property and a cleanup() method. A Manager with nothing to intercept passes actions through: middleware: Middleware = controller => next => async action => next(action);
Use cases
Minimal working examples for each use case live in references/managers.md (see the named section) unless another file is linked: