Replies: 1 comment
-
I have a similar issue: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I stumbled across an issue where an Alpine data triggers a
$watch
callback of another data.To demonstrate the issue I created this codepen snippet:
https://codepen.io/DiskoPete/pen/MWpdNpX
Steps to reproduce
b
is watched and will triggerthis.submit()
Results expected
$watch
callback for valueb
isn't triggered when we change valuea
Actual results
After the value
b
$watch
callback is triggered for the first time, the callback will also be fired if we change valuea
.OS/Browser
macOS 11.4; Chrome 91; alpinejs 3.1.0
Other
Thank you very much for your time and effort you put into this! 🚀
Beta Was this translation helpful? Give feedback.
All reactions