Want to define a callback and then remove the callback after a particular condition is met.
how to clear the callback so it doesn’t trigger anymore?
Thank you for your question.
We kindly recommend using the off() API call for clearing the callback.
Please see the following guide for more details.
Please let us know if this helps.