MCPcopy Create free account
hub / github.com/sshwsfc/xadmin / paramsReducer

Function paramsReducer

xadmin-dashboard/src/reducers.js:14–24  ·  view source on GitHub ↗
(state={}, action)

Source from the content-addressed store, hash-verified

12}
13
14const paramsReducer = (state={}, action) => {
15 const { type, payload, params } = action
16 switch(type) {
17 case '@@x-dashboard/UPDATE_DASHBOARD':
18 return params
19 // case REHYDRATE:
20 // return action.payload.dashboard.params
21 default:
22 return state
23 }
24}
25
26const cellsReducer = (state={}, action) => {
27 const { type, key, params, Container } = action

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected