Skip to content

1.3.0: More robust dependency detection in binding functions

Compare
Choose a tag to compare
@Tao-VanJS Tao-VanJS released this 26 Feb 17:31
· 165 commits to main since this release

Improve the dependency detection in binding functions to avoid self-referencing side effect triggering infinite loop.

With this release, the following code will work perfectly:

van.derive(() => {
  if (checked.val) ++numChecked.val
})

See the release announcement: #275