Disposer: () => void

A teardown function returned by every enhancer. Calling it removes all listeners and observers the enhancer registered and un-marks the affected roots so they can be safely enhanced again (e.g. after a framework remount).

Type declaration

    • (): void
    • Returns void