Skip to content
CCinder
Cinder.off

API Reference

Cinder.off

Unsubscribe a previously registered runtime event handler.

Use off() to remove a runtime event handler that was previously registered with Cinder.on().

Example

ts
6 lines
const handler = (payload) => {
  console.log(payload);
};

Cinder.on('dispatch:end', handler);
Cinder.off('dispatch:end', handler);

Important note

Pass the same handler reference you originally registered.

Continue reading