You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is intended behavior. VanJS uses reference equality check to determine whether a state has changed. If you call push or splice method, the reference to the underlying array won't change, thus won't trigger a DOM update. If you want the DOM tree to be updated on the mutation of an array, you can take a look at vanX.list in VanX extension.
if I do above, it doesn't trigger any change
if I change onclick to
it works as expected.
same issue/behavior with subnodes.val.splice
any insight why push/splice doesn't work?
The text was updated successfully, but these errors were encountered: