MCPcopy Create free account
hub / github.com/DavidWells/analytics / dispatch

Function dispatch

packages/analytics-core/src/utils/debug.js:13–17  ·  view source on GitHub ↗
(action)

Source from the content-addressed store, hash-verified

11 const store = createStore(reducer, preloadedState, enhancer)
12 const origDispatch = store.dispatch
13 const dispatch = (action) => {
14 const a = action.action || action
15 globalContext[KEY][LIB_NAME].push(a)
16 return origDispatch(action)
17 }
18 return Object.assign(store, { dispatch: dispatch })
19 }
20 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected