Skip to content

Keep array property of a class which is constantly reassigned reactive #284

Answered by sirenkovladd
SwatDoge asked this question in Q&A
Discussion options

You must be logged in to vote

@SwatDoge
Pay attention to this caveat
https://vanjs.org/x#caveat-no-reuse-reactive

This is exactly what you are trying to do (change the object passed to the reactive)

I made a couple of working examples with your code
https://jsfiddle.net/Sirenko/t6fb91pv/
https://jsfiddle.net/Sirenko/d7uk1f53/
https://jsfiddle.net/Sirenko/cLx5qdzt/

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by SwatDoge
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants