MCPcopy
hub / github.com/embedpdf/embed-pdf-viewer / dispatch

Function dispatch

packages/core/src/lib/base/base-plugin.ts:177–179  ·  view source on GitHub ↗

* Dispatch an action

(action: TAction)

Source from the content-addressed store, hash-verified

175 * Dispatch an action
176 */
177 protected dispatch(action: TAction): TState {
178 return this.pluginStore.dispatch(action);
179 }
180
181 /**
182 * Dispatch an action with a cooldown to prevent rapid repeated calls

Callers

nothing calls this directly

Calls 1

dispatchMethod · 0.45

Tested by

no test coverage detected