MCPcopy Create free account
hub / github.com/astercloud/aster / restoreState

Function restoreState

ui/src/composables/useStreamingState.ts:231–243  ·  view source on GitHub ↗

* Restore all state after an update

()

Source from the content-addressed store, hash-verified

229 * Restore all state after an update
230 */
231 async function restoreState(): Promise<void> {
232 if (isRestoring.value) return;
233
234 isRestoring.value = true;
235
236 try {
237 await nextTick();
238 restoreScrollPositions();
239 restoreFocusState();
240 } finally {
241 isRestoring.value = false;
242 }
243 }
244
245 /**
246 * Clear all preserved state

Callers

nothing calls this directly

Calls 2

restoreScrollPositionsFunction · 0.85
restoreFocusStateFunction · 0.85

Tested by

no test coverage detected