I want to know is there any way to bind onChange event and click event at the same time to the ion-toggle.
Currently, I need to fire my API to get my valve latest status (either on or off), there are some delay in the API to update the status of the valve (for example, currently is off, I turned on, but the API returned the valve is off, thus the ion-toggle will switch to off again, then on again in the next second). I tried to do the trick to delay the timer to get the API status, but actually, this could be hard to predict, it based on the internet speed to update the status.
Is there any better way to handle this?
Thanks in advance.