Create a vanilla Zustand store seeded with initialProps.
initialProps
The returned store object exposes the standard Zustand vanilla API (getState, setState, subscribe, getInitialState, destroy) plus the PipelineStore action surface via getState().
getState
setState
subscribe
getInitialState
destroy
getState()
Optional overlay context to seed (campaign IDs, pre-fetched campaigns, the WebSocket URL, etc.).
A vanilla Zustand store instance.
import { createPipelineStore } from "@playlive/realtime-pipeline/store";const store = createPipelineStore({ initialCampaignIDs: ["abc-123"], initialOverlayName: "donation-bar", initialOverlayPath: "/overlays/donation-bar",}); Copy
import { createPipelineStore } from "@playlive/realtime-pipeline/store";const store = createPipelineStore({ initialCampaignIDs: ["abc-123"], initialOverlayName: "donation-bar", initialOverlayPath: "/overlays/donation-bar",});
Create a vanilla Zustand store seeded with
initialProps.The returned store object exposes the standard Zustand vanilla API (
getState,setState,subscribe,getInitialState,destroy) plus the PipelineStore action surface viagetState().