Is it possible to Shuffle() without deleting items? #894
-
Hi While using shuffle(), I saw that it destroys values... Is there a way to mix values, without destroying them? (Or is this a bug?) |
Beta Was this translation helpful? Give feedback.
Answered by
DmitrySharabin
Jul 21, 2022
Replies: 1 comment 1 reply
-
Hey there, It looks like the
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
GalinhaLX
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey there,
It looks like the
mv-action="set(myList, shuffle(myList))"
expression leads to some sort of race condition. Try using a computed property instead, like so: