Can selectors return non-serializable values such as Map, Set, Date, etc. #3784
Unanswered
vincentole
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I would like to know if selectors can return non-serializable values such as Map, Set, Date, etc.
I couldn't find something in the docs, only that there are:
However, since props are checked for equality for memoization I'm not sure how this influences if return types must be serializable.
An example type would be: MemoizedSelector<any, Map<UserId, {favoriteBooks: Books[], ...other}>>
Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions