Maybe a weird workflow here, but I persist a handful of strings to my local storage. Just vanilla strings.
When I reload my page, the persisted store appears to try to serialize/deserialize to/from JSON (which is stated in the docs), but it leads to this after 3 reloads
current:locale = "\"\\\"\\\\\\\"fr\\\\\\\"\\\"\""
I was just wondering if there was any way (or if it's simple enough), to set the JSON part of the serialization as an optional thing, and otherwise just read/persist flat strings.
I re-factored a bunch of my code, and this is no longer an issue. I'm going to assume I was using this incorrectly in my first pass, as I can't repro this issue.
Maybe a weird workflow here, but I persist a handful of strings to my local storage. Just vanilla strings.
When I reload my page, the
persisted
store appears to try to serialize/deserialize to/from JSON (which is stated in the docs), but it leads to this after 3 reloadscurrent:locale
="\"\\\"\\\\\\\"fr\\\\\\\"\\\"\""
I was just wondering if there was any way (or if it's simple enough), to set the JSON part of the serialization as an optional thing, and otherwise just read/persist flat strings.