Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
joshnuss authored Apr 19, 2024
1 parent 628171c commit 8043464
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export const preferences = persisted('local-storage-key', 'default-value', {
serializer: devalue, // defaults to `JSON`
storage: 'session', // 'session' for sessionStorage, defaults to 'local'
syncTabs: true, // choose wether to sync localStorage across tabs, default is true
onWriteError: (e) => {/* handle or rethrow */}, // Defaults to console.error with the error object
onParseError: (raw, e) => {/* handle or rethrow */}, // Defaults to console.error with the error object
onWriteError: (error) => {/* handle or rethrow */}, // Defaults to console.error with the error object
onParseError: (raw, error) => {/* handle or rethrow */}, // Defaults to console.error with the error object
})
```

Expand Down

0 comments on commit 8043464

Please sign in to comment.