-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v1] Quasar LocalStorage do not restore Date object after get #4338
Comments
i think coz you stored it inside an object, try setting it on a different key as is, otherwise not hard to parse it back to a date object imo. |
This is not solution, because if it is all automated it is simple. But if I have complex object with many properies some of them are Dates, it will be painfull and not a solution. |
while you are right, the api only knows the type by each key which they are assigned, in your case is an object, it doesn't traverse deep inside it to encode/decode the inner properties in their respective type. |
Ok. It is clear. |
…/SessionStorage See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement ref quasarframework#4338
…/SessionStorage See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement ref quasarframework#4338
…/SessionStorage See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement ref quasarframework#4338
…/SessionStorage See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement ref quasarframework#4338
…/SessionStorage See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement ref quasarframework#4338
…/SessionStorage See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement ref quasarframework#4338
…/SessionStorage See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement ref quasarframework#4338
…/SessionStorage See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement ref quasarframework#4338
…/SessionStorage See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement ref quasarframework#4338
…/SessionStorage See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement ref quasarframework#4338
…/SessionStorage See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement ref quasarframework#4338
…/SessionStorage See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement ref quasarframework#4338
…/SessionStorage See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement ref quasarframework#4338
…/SessionStorage See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement ref quasarframework#4338
…/SessionStorage See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement ref quasarframework#4338
…/SessionStorage See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement ref quasarframework#4338
…/SessionStorage See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement ref quasarframework#4338
…/SessionStorage See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement ref quasarframework#4338
…/SessionStorage See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement ref quasarframework#4338
…/SessionStorage See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement ref quasarframework#4338
…/SessionStorage See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement ref quasarframework#4338
…/SessionStorage See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement ref quasarframework#4338
…/SessionStorage See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement ref quasarframework#4338
…/SessionStorage See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement ref quasarframework#4338
…/SessionStorage See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement ref quasarframework#4338
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
…and Local/SessionStorage quasarframework#4338 - see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) - fix Cookies getAll to parse value - fix Cookies set on SSR to retrieve raw previous value for replacement
I have object
If I store it with quasar LocalStorage, and after it get from it.
Object prop2 Date field become string.
But have to be Date.
The text was updated successfully, but these errors were encountered: