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

Last Updated: 13 June, 2024