MCPcopy Create free account
hub / github.com/plotly/dash / config

Function config

dash/dash-renderer/src/reducers/config.js:4–20  ·  view source on GitHub ↗
(state = null, action)

Source from the content-addressed store, hash-verified

2import {mergeDeepRight} from 'ramda';
3
4export default function config(state = null, action) {
5 if (action.type === getAction('SET_CONFIG')) {
6 // Put the components childrenProps in windows for side usage.
7 window.__dashprivate_childrenProps = mergeDeepRight(
8 window.__dashprivate_childrenProps || {},
9 action.payload.children_props
10 );
11 return action.payload;
12 } else if (action.type === getAction('ADD_HTTP_HEADERS')) {
13 return mergeDeepRight(state, {
14 fetch: {
15 headers: action.payload
16 }
17 });
18 }
19 return state;
20}

Callers 2

webpack.config.jsFile · 0.85

Calls 1

getActionFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…