Skip to main content

How would I unsubscribe to an skuid event from javascript. Any help would be much appreciated.

Thanks.

https://docs.skuid.com/latest/en/skuid/api/skuid_events.html


Looks like the docs on the skuid.events.unsubscribe() method are incomplete — we’ll get that fixed.

Every call to skuid.events.subscribe() returns a subscription/handle which can be used to unsubscribe in the future, e.g.


var subscription = skuid.events.subscribe("models.loaded", function() { ... });<br>skuid.events.unsubscribe(subscription);

Thanks Zach! This is  helpful.