Can I use atoms to save instances of custom Classes #2780
Answered
by
dai-shi
zhangchi0104
asked this question in
Q&A
-
Hi, I am currently using jotai with twilio-react-native. Currently, twilio has a class called Given that I understand the issue of referential equality and there's no need to serialize it, is that possible for me to save it in the jotai store? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
dai-shi
Oct 21, 2024
Replies: 1 comment
-
Yes, you can store anything. (one exception is a bare function, because it's confused with an updating function. We can wrap the function.) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
zhangchi0104
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, you can store anything. (one exception is a bare function, because it's confused with an updating function. We can wrap the function.)