Replies: 2 comments
-
Thanks for opening up the discussion. Valtio's design decision is that it doesn't support native Set/Map. So, proxySet/Map is implemented as an emulation. We would like to collect more feedback on the low-level function and re-design a new/better/extensible API for the future version of Valtio. |
Beta Was this translation helpful? Give feedback.
-
Auto proxySet/Map might be technically possible with new internals exposed. Also, I opened up a new discussion: #943 |
Beta Was this translation helpful? Give feedback.
-
background, when persist data is needed, serialization / deserialization is need.
the superjson supports Map/Set serialization / deserialization
when use set/map with valtio, things need to be done
AS u can see, it would be nice for
proxy()
support realSet/Map
: auto transform to proxySet/proxyMapBeta Was this translation helpful? Give feedback.
All reactions