Date objects in RTK Query docs vs. serializability guidelines #5209
Unanswered
goatrenterguy
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
it's just a quick example of the interactions between schemas and transforms - if you can think of one without serializability issues, a PR is welcome. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
The RTK Query docs show transformResponse creating Date objects that get cached in the store:
But the Style Guide says to avoid class instances (like Date) in state.
Is this example intentional, or should it include a note about the serializability tradeoffs?
Beta Was this translation helpful? Give feedback.
All reactions