MCPcopy Index your code
hub / github.com/developersdigest/llm-answer-engine / dispatch

Function dispatch

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 5

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

Calls 1

reducerFunction · 0.85

Tested by

no test coverage detected