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

Function getConfigFromDOM

dash/dash-renderer/src/config.ts:36–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34};
35
36export default function getConfigFromDOM(): DashConfig {
37 const configElement = document.getElementById('_dash-config');
38 return JSON.parse(
39 configElement?.textContent ? configElement?.textContent : '{}'
40 );
41}

Callers 2

AppProviderFunction · 0.85

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…