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

Method rebuildReducer

frontend/public/swagger-ui-bundle.js:31380–31409  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31378 this.system.configs = s
31379 }
31380 rebuildReducer() {
31381 this.store.replaceReducer(
31382 (function buildReducer(s, o) {
31383 return (function allReducers(s, o) {
31384 let i = Object.keys(s).reduce(
31385 (i, a) => (
31386 (i[a] = (function makeReducer(s, o) {
31387 return (i = new ze.Map(), a) => {
31388 if (!s) return i
31389 let u = s[a.type]
31390 if (u) {
31391 const s = wrapWithTryCatch(u, o)(i, a)
31392 return null === s ? i : s
31393 }
31394 return i
31395 }
31396 })(s[a], o)),
31397 i
31398 ),
31399 {}
31400 )
31401 if (!Object.keys(i).length) return idFn
31402 return (0, Xe.H)(i)
31403 })(
31404 objMap(s, (s) => s.reducers),
31405 o
31406 )
31407 })(this.system.statePlugins, this.getSystem)
31408 )
31409 }
31410 getType(s) {
31411 let o = s[0].toUpperCase() + s.slice(1)
31412 return objReduce(this.system.statePlugins, (i, a) => {

Callers 1

buildSystemMethod · 0.95

Calls 4

wrapWithTryCatchFunction · 0.85
objMapFunction · 0.85
reduceMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected