@tempots/dom > Signal > onDispose
Adds a listener function to be called when the object is disposed.
Signature:
readonly onDispose: (listener: () => void) => void;