MCPcopy
hub / github.com/AgentOps-AI/agentops / dispatch

Function dispatch

app/dashboard/components/ui/use-toast.ts:131–136  ·  view source on GitHub ↗
(action: Action)

Source from the content-addressed store, hash-verified

129let memoryState: State = { toasts: [] };
130
131function dispatch(action: Action) {
132 memoryState = reducer(memoryState, action);
133 listeners.forEach((listener) => {
134 listener(memoryState);
135 });
136}
137
138type Toast = Omit<ToasterToast, 'id'>;
139

Callers 6

addToRemoveQueueFunction · 0.85
updateFunction · 0.85
dismissFunction · 0.85
toastFunction · 0.85
useToastFunction · 0.85
BillingProviderFunction · 0.85

Calls 1

reducerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…