Actions reactivity
Wized tracks the dependencies of each action's function. This means that if a function uses a variable, and that variable changes, the function will be re-evaluated and the output will be updated.
This is a powerful feature that allows you to build complex logic without manually updating the UI or triggering other actions when specific conditions are met.
For example, when setting a Set Text
action that uses a variable like this:
js
(c, f, i, n, r, v, e, t) => {
return v.total;
};
The element's text will be updated whenever the v.total
variable changes: