We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
prefer-serializable-value-in-store
This code
const $data = createStore(new Date()) const setData = createEvent<Date>() const scope1 = fork() await allSettled(setData, { scope: scope1, params: new Date('2020-01-01') }) const json = JSON.stringify(serialize(scope)) const scope2 = fork() hydrate(scope2, { values: JSON.parse(json) })
will produce error because Date will be serialized to ISO-format, but won't be deserialized back.
Date
We can warn user about it
The text was updated successfully, but these errors were encountered:
cc @alatielle
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
This code
will produce error because
Date
will be serialized to ISO-format, but won't be deserialized back.We can warn user about it
The text was updated successfully, but these errors were encountered: