MCPcopy Index your code
hub / github.com/plotly/dash / getState

Function getState

components/dash-table/demo/AppMode.ts:427–441  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

425}
426
427function getState() {
428 const mode = Environment.searchParams.get('mode');
429 const flavorParam = Environment.searchParams.get('flavor');
430 const flavors = flavorParam ? flavorParam.split(';') : [];
431
432 const state = getModeState(mode);
433 flavors.forEach(flavor => {
434 const [key, valueString] = flavor.split('=');
435 const value = JSON.parse(valueString);
436
437 (state.tableProps as any)[key] = value;
438 });
439
440 return state;
441}
442export default getState();

Callers 15

AppMode.tsFile · 0.85
updatePropsFunction · 0.85
addComponentToLayoutFunction · 0.85
hydrateInitialOutputsFunction · 0.85
triggerDefaultStateFunction · 0.85
moveHistoryFunction · 0.85
notifyObserversFunction · 0.85
apiThunkFunction · 0.85
setConnectionStatusFunction · 0.85
updateComponentFunction · 0.85
sideUpdateFunction · 0.85
handleOutputFunction · 0.85

Calls 3

getModeStateFunction · 0.85
getMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…