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

Function createStoreWithMiddleware

frontend/public/swagger-ui-bundle.js:31292–31311  ·  view source on GitHub ↗
(s, o, i)

Source from the content-addressed store, hash-verified

31290 const isEmptyValue = (s) => !s || !(!isImmutable(s) || !s.isEmpty()),
31291 idFn = (s) => s
31292 function createStoreWithMiddleware(s, o, i) {
31293 let a = [systemThunkMiddleware(i)]
31294 return createStore(
31295 s,
31296 o,
31297 (lt.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose)(
31298 (function applyMiddleware(...s) {
31299 return (o) => (i, a) => {
31300 const u = o(i, a)
31301 let dispatch = () => {
31302 throw new Error(formatProdErrorMessage(15))
31303 }
31304 const _ = { getState: u.getState, dispatch: (s, ...o) => dispatch(s, ...o) },
31305 w = s.map((s) => s(_))
31306 return ((dispatch = compose(...w)(u.dispatch)), { ...u, dispatch })
31307 }
31308 })(...a)
31309 )
31310 )
31311 }
31312 class Store {
31313 constructor(s = {}) {
31314 ;(Ye()(

Callers 1

constructorMethod · 0.85

Calls 7

systemThunkMiddlewareFunction · 0.85
createStoreFunction · 0.85
composeFunction · 0.85
oFunction · 0.70
dispatchFunction · 0.70
sFunction · 0.50
mapMethod · 0.45

Tested by

no test coverage detected