generateStores(doc) — project the C037 reactive facet (x-suluk-store + x-suluk-notify) into a typed Nano Stores
reactive layer (states + mutation→store invalidation + a hookable callback seam) on top of the generated client.
import { generateSdk, generateStores } from "@suluk/sdk";
const sdk = generateSdk(doc, { baseURL }); // the typed RPC client
const stores = generateStores(doc); // the reactive layer over it (a self-contained .ts file)
generateStores(doc) — project the C037 reactive facet (
x-suluk-store+x-suluk-notify) into a typed Nano Stores reactive layer (states + mutation→store invalidation + a hookable callback seam) on top of the generated client.import { generateSdk, generateStores } from "@suluk/sdk"; const sdk = generateSdk(doc, { baseURL }); // the typed RPC client const stores = generateStores(doc); // the reactive layer over it (a self-contained .ts file)