Persist home stepper state to localStorage via freeze scope
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
- freeze-scope "home-stepper" captures step-idx signal - Each step/back saves to localStorage via freeze-to-sx - On mount, restores from localStorage via thaw-from-sx - Invalid state resets to default (step 9) - Clear preview lake before replay to prevent duplicates - Register local-storage-get/set/remove as primitives - Arrows 3x bigger Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -2912,6 +2912,9 @@ PLATFORM_BOOT_JS = """
|
||||
function localStorageRemove(key) {
|
||||
try { localStorage.removeItem(key); } catch (e) {}
|
||||
}
|
||||
PRIMITIVES["local-storage-get"] = localStorageGet;
|
||||
PRIMITIVES["local-storage-set"] = localStorageSet;
|
||||
PRIMITIVES["local-storage-remove"] = localStorageRemove;
|
||||
|
||||
// --- Cookies ---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user