(layout, dispatch)
| 362 | * callbacks) to apply previously-stored UI edits to components |
| 363 | */ |
| 364 | export 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 | |
| 373 | const UNDO = true; |
| 374 | function modProp(key, storage, element, props, persistedProp, update, undo) { |
no test coverage detected
searching dependent graphs…