API Reference > ui-core > Utilities > useDisposable useDisposable Function Beta Custom hooks which creates disposable and manages it's disposal. useDisposable<TDisposable extends IDisposable>(createDisposable: () => TDisposable extends IDisposable): TDisposable Parameter Type Description createDisposable () => TDisposable extends IDisposable Returns - TDisposable Defined in ui/core/src/ui-core/utils/CustomHooks.ts Line 33 Last Updated: 13 June, 2024