Disable stringifying the value #154
Metaphysics0
started this conversation in
General
Replies: 1 comment
-
Hi @Metaphysics0, The serializer is an option, it can be adjusted to perform a no-op. persisted('local-storage-key', 'default-value', {
// adjust the serializer to be a no-op
serializer: {
stringify: val => val,
parse: val => val
}
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
By default it looks like we stringify the localstorage value, and I want to create a PR for this to be optional.
Beta Was this translation helpful? Give feedback.
All reactions