MCPcopy Index your code
hub / github.com/dataease/SQLBot / dispatch

Function dispatch

frontend/public/swagger-ui-bundle.js:30794–30810  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

30792 )
30793 }
30794 function dispatch(s) {
30795 if (!isPlainObject(s)) throw new Error(formatProdErrorMessage(7))
30796 if (void 0 === s.type) throw new Error(formatProdErrorMessage(8))
30797 if ('string' != typeof s.type) throw new Error(formatProdErrorMessage(17))
30798 if (C) throw new Error(formatProdErrorMessage(9))
30799 try {
30800 ;((C = !0), (u = a(u, s)))
30801 } finally {
30802 C = !1
30803 }
30804 return (
30805 (_ = w).forEach((s) => {
30806 s()
30807 }),
30808 s
30809 )
30810 }
30811 dispatch({ type: qe.INIT })
30812 return {
30813 dispatch,

Callers 2

createStoreFunction · 0.70

Calls 5

isPlainObjectFunction · 0.85
formatProdErrorMessageFunction · 0.85
aFunction · 0.70
sFunction · 0.50
forEachMethod · 0.45

Tested by

no test coverage detected