reactive ten, effect must watch ten all together? #4130
Replies: 3 comments 2 replies
-
Like this, if effect must watch all, how I can watch each individual respectively? I do not want them to get influenced across. Thanks |
Beta Was this translation helpful? Give feedback.
-
You can add as many separate Alpine.effect callback as you want in your script (unless I misunderstood the question). |
Beta Was this translation helpful? Give feedback.
-
Effects can respond to unlimited reactive values, and reactive values can be watched by unlimited effects. Normally these apis of If you're still new to Alpine, it would smarter to just understand they are there, as opposed to trying to build something around them. You can almost see it as Alpine just being a kind framework and exposing access to some basic internals. |
Beta Was this translation helpful? Give feedback.
-
Hi,
From this example, one reactive to one effect, I can get it.
But if I have ten reactive, and I only care specific one in one of the x-data scope to keep updating the latest value, how to do?
Or the effect is like global watcher for all defined reactive?
Thanks
Eric Xin
Beta Was this translation helpful? Give feedback.
All reactions