Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Data Client managers

Writes @data-client Managers for websockets, polling and app wide side effects, so live data reaches your store.

Claude's review

7/10 Deep guidance on one niche library middleware with lifecycle gotchas, relies on reference docs

We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.

In detail

Write @data-client Managers, the runtime layer that bridges the store to the world outside the view framework: global side effects and real-time data such as websockets, SSE and polling. A Manager reacts to every request or to events from outside the app, and moves data into or out of the store. Use one instead of useEffect for behavior that belongs to the whole app, such as error toasts and reporting, logging and analytics, auth failures, refetching on focus or reconnect, and cross-tab sync. Not for the shape of data: data built from responses (joined, derived, or accumulated) is defined in a schema, so use data-client-schema.

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: data-client-manager
description: "Write @data-client Managers, the runtime layer that bridges the store to the world outside the view framework: global side effects and real-time data such as websockets, SSE and polling. A Manager reacts to every request or to events from outside the app, and moves data into or out of the store. Use one instead of useEffect for behavior that belongs to the whole app, such as error toasts and reporting, logging and analytics, auth failures, refetching on focus or reconnect, and cross-tab sync. Not for the shape of data: data built from responses (joined, derived, or accumulated) is defined in a schema, so use data-client-schema."
license: Apache 2.0
---

# Managers: the store's bridge to the world outside the view framework

Data Client keeps three layers apart. The data definition is the data model (schemas) and the API definition
(endpoints): the operations on that data model. Hooks are the runtime in the view framework.
[Managers](references/managers.md) are the runtime outside it: they bridge the store to sockets, timers, browser events,
other tabs, logging and reporting services, as `useEffect` bridges a component to what is outside React.

The store is [flux](https://facebookarchive.github.io/flux/docs/in-depth-overview/): unidirectional data flow through a
pure reducer. Managers orchestrate its global side effects, in two directions:

- **In**: an outside event becomes an [action](references/Actions.md), dispatched through
  [Controller](references/Controller.md): a socket message, a timer, a window focus.
- **Out**: an action causes an effect outside the store, from the Manager's
  [redux middleware](https://redux.js.org/tutorials/fundamentals/part-4-store#middleware): a log line, a toast, a
  report.

A Manager does not define data. The data model stays in the schema, also when a Manager delivers the data: the Manager
calls `controller.set()`, and the Entity's `process()` and `merge()` decide what the store keeps. Data joined, derived,
or accumulated from responses needs no Manager of its own: write it in the schema (skill "data-client-schema").

## 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);`

Each store gets its own Managers, so code lives at one of three [lifetimes](references/Manager.md#lifetimes):

| Lifetime | Lasts                   | Holds                                                                          |
| -------- | ----------------------- | ------------------------------------------------------------------------------ |
| Config   | the page                | constructor options, like a URL or callbacks. The constructor only stores them |
| Store    | one store               | instance fields about the store, like the controller and fetches in flight     |
| Active   | `init()` to `cleanup()` | timers, intervals, connections and listeners                                   |

...

From reactive's repository, Apache-2.0 licence.

Related skills

  • Checked

    ComfyUI custom node UI

    Adds widgets, sidebar tabs, commands and dialogs to ComfyUI custom nodes, so your node feels built in.

    by jtydhr88 325
    7/101 credit
  • Checked

    Scrolling menu upgrade

    Finds outdated react-horizontal-scrolling-menu code and rewrites it for version 8 so the menu works again.

    by asmyshlyaev177 789
    7/101 credit
  • Checked

    Scroll Menu Testing and SSR

    Gets react-horizontal-scrolling-menu working in Next.js and tested in Jest and Playwright without flicker.

    by asmyshlyaev177 789
    7/101 credit
  • Checked

    Conform React Forms

    Builds React forms with Conform and Zod that validate on the server and still work before JavaScript loads.

    by TerminalSkills 221
    7/101 credit
  • Checked

    Next.js 16 App Builder

    Builds Next.js 16 apps the current way, with Server Components, Server Actions, caching and the new proxy file.

    by TerminalSkills 221
    7/101 credit
  • Checked

    TinyBase Local First Apps

    Builds offline friendly apps on a TinyBase store, saving locally or to a database and syncing across devices.

    by TerminalSkills 221
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added