$persist on an empty Array throws error #2220
Unanswered
noam-elbaz
asked this question in
1. Help
Replies: 1 comment
-
try cleaning your localStorage, you probably saved a different object type with the same key earlier. I've just tried and |
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
Uh oh!
There was an error while loading. Please reload this page.
-
In x-data --> tasklist: $persist( [] ),
(I will be pushing objects to the array)
I want the data to persist.
(PS I'm have no issues using $persist in any other context)
But I get this.
Any help would be appreciated.
VM14669:1 Uncaught SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse ()
at d (cdn.min.js:1)
at r.as.o (cdn.min.js:1)
at Proxy.initialize (cdn.min.js:1)
at cdn.min.js:1
at Array.forEach ()
at r (cdn.min.js:1)
at It (cdn.min.js:1)
at cdn.min.js:5
at Function. (cdn.min.js:
Beta Was this translation helpful? Give feedback.
All reactions