MCPcopy
hub / github.com/plotly/dash / applyPersistence

Function applyPersistence

dash/dash-renderer/src/persistence.js:364–371  ·  view source on GitHub ↗
(layout, dispatch)

Source from the content-addressed store, hash-verified

362 * callbacks) to apply previously-stored UI edits to components
363 */
364export function applyPersistence(layout, dispatch) {
365 if (Array.isArray(layout)) {
366 return layout.map(lay =>
367 isDryComponent(lay) ? persistenceMods(lay, lay, [], dispatch) : lay
368 );
369 }
370 return persistenceMods(layout, layout, [], dispatch);
371}
372
373const UNDO = true;
374function modProp(key, storage, element, props, persistedProp, update, undo) {

Callers 2

applyPropsFunction · 0.90

Calls 2

isDryComponentFunction · 0.90
persistenceModsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…