Skip to content

Commit

Permalink
$mol_state_local: no async on set
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Nov 10, 2023
1 parent 955007b commit 925fc27
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion state/local/local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ namespace $ {
this.native().removeItem( key )
} else {
this.native().setItem( key , JSON.stringify( next ) )
this.$.$mol_storage.persisted( true )
try {
this.$.$mol_storage.persisted( true )
} catch( error ) {
$mol_fail_log( error )
}
}

return next
Expand Down

0 comments on commit 925fc27

Please sign in to comment.