You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/pages/plugins/createWebStoragePersister.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,3 +72,27 @@ The default options are:
72
72
deserialize =JSON.parse,
73
73
}
74
74
```
75
+
76
+
#### `serialize` and `deserialize` options
77
+
There is a limit to the amount of data which can be stored in `localStorage`.
78
+
If you need to store more data in `localStorage`, you can override the `serialize` and `deserialize` functions to compress and decrompress the data using a library like [lz-string](https://github.com/pieroxy/lz-string/).
0 commit comments