Valtio with javascript Sets #272
-
Hey friends! I created a new proxy with one of the properties being a JavaScript export const selectionState = proxy({
items: new Set(),
}) It is however not triggering re-render when adding or removing from it. Is that normal or am I missing something? |
Beta Was this translation helpful? Give feedback.
Answered by
dai-shi
Nov 9, 2021
Replies: 1 comment 1 reply
-
Hi, thanks for asking. proxy works for plain objects, and it doesn't track (Now, I think we need to do something with docs...) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Elia-Darwish
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, thanks for asking. proxy works for plain objects, and it doesn't track
Set
.See also #266.
(Now, I think we need to do something with docs...)