MCPcopy
hub / github.com/marimo-team/marimo / dispatch

Function dispatch

frontend/src/components/ui/use-toast.ts:157–162  ·  view source on GitHub ↗
(action: Action)

Source from the content-addressed store, hash-verified

155let memoryState: State = { toasts: [] };
156
157function dispatch(action: Action) {
158 memoryState = reducer(memoryState, action);
159 listeners.forEach((listener) => {
160 listener(memoryState);
161 });
162}
163
164type Toast = Omit<ToasterToast, "id">;
165

Callers 8

addToRemoveQueueFunction · 0.70
updateFunction · 0.70
dismissFunction · 0.70
upsertFunction · 0.70
toastFunction · 0.70
useToastFunction · 0.70
FindReplaceFunction · 0.50
createReducerFunction · 0.50

Calls 3

reducerFunction · 0.85
listenerFunction · 0.85
forEachMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…