Skip to content

Does Redux Persist allow for Date objects? #4014

Answered by markerikson
trajano asked this question in Q&A
Discussion options

You must be logged in to vote

Redux Persist isn't part of RTK, but yeah, Date class instances would fall under the "not serializable" category, and you're better off keeping date values in the store as numeric timestamps or strings:

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@trajano
Comment options

@markerikson
Comment options

@EskiMojo14
Comment options

Answer selected by trajano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants