Trigger Side Effects using Zag.js computed and watch Properties

InstructorSegun Adebayo

Share this video with your friends

Send Tweet

When the pin input values are full we will want to do something with those values such as sending an HTTP request.

To do this we'll implement a callback in context that will get invoked when all the values are computed. We'll do this by creating a computed property that returns true when all values in context are full. From there we will watch that computed property to invoke our callback.