diff --git a/plans/versioned-localstorage-sessions.md b/plans/versioned-localstorage-sessions.md index 4ba95a0031..6b65c1d285 100644 --- a/plans/versioned-localstorage-sessions.md +++ b/plans/versioned-localstorage-sessions.md @@ -226,7 +226,7 @@ Tab A action: broadcast update notification Broadcasting after a failed write would tell Tab B to reread localStorage while it still contains `(7, A)`, spreading the stale generation instead of the new one. -After successfully writing and verifying localStorage, notify other tabs: +After successfully writing localStorage, notify other tabs: ```ts broadcast.postMessage({ @@ -310,7 +310,7 @@ Read authoritative localStorage state Conditionally commit against active base jti | v -Write and verify localStorage +Write localStorage | +-- failure -> report or retry; do not broadcast | diff --git a/src/state/persisted/index.web.ts b/src/state/persisted/index.web.ts index 3525307ef2..058a66c9d1 100644 --- a/src/state/persisted/index.web.ts +++ b/src/state/persisted/index.web.ts @@ -208,9 +208,6 @@ function writeToStorage(value: Schema) { } try { localStorage.setItem(BSKY_STORAGE, rawData) - if (localStorage.getItem(BSKY_STORAGE) !== rawData) { - throw new Error('Failed to verify persisted state') - } } catch (error) { logger.error('persisted state: failed writing root state to storage', { message: error,