can component with "is" change it's value? #6981
Answered
by
LinusBorg
coader
asked this question in
Help/Questions
-
I need change component's value by click button |
Beta Was this translation helpful? Give feedback.
Answered by
LinusBorg
Oct 28, 2022
Replies: 1 comment
-
.reverse() mutates the (non-reactive) children array, so the basket of items is always the same array -> no re-render. Quick solution: children.slice().reverse() |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
coader
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.reverse() mutates the (non-reactive) children array, so the basket of items is always the same array -> no re-render.
Quick solution: children.slice().reverse()