Skip to content

vanX.reactive not working as expected? #194

Answered by Tao-VanJS
cipriano200 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

To make it work, you need to change data.count to () => data.count. See https://vanjs.org/x#caveat-access-sub-field for more information.

Here is a preview link for the code after fixing this: https://jsfiddle.net/7zL36pxs/8/.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cipriano200
Comment options

Answer selected by Tao-VanJS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants