Match old handling

This commit is contained in:
Eric Bailey
2026-08-31 12:58:21 -05:00
parent 86c59d306e
commit 1927cf27cc
2 changed files with 2 additions and 6 deletions
+1 -3
View File
@@ -139,9 +139,7 @@ async function persistWithRetry(value: Schema) {
async function writeToStorage(value: Schema) {
const rawData = tryStringify(value)
if (!rawData) {
throw new Error('Failed to serialize persisted state')
}
if (!rawData) return
try {
await AsyncStorage.setItem(BSKY_STORAGE, rawData)
} catch (e) {
+1 -3
View File
@@ -225,9 +225,7 @@ function broadcastUpdate({
function writeToStorage(value: Schema) {
const rawData = tryStringify(value)
if (!rawData) {
throw new Error('Failed to serialize persisted state')
}
if (!rawData) return
try {
localStorage.setItem(BSKY_STORAGE, rawData)
if (localStorage.getItem(BSKY_STORAGE) !== rawData) {