Expose isDisposed through base vm

This commit is contained in:
R Midhun Suresh 2025-08-11 11:03:40 +05:30
parent c3f1879189
commit 1927a4b235
No known key found for this signature in database

View File

@ -41,4 +41,11 @@ export abstract class BaseViewModel<T, P> implements ViewModel<T> {
public dispose(): void {
this.disposables.dispose();
}
/**
* Whether this view-model has been disposed.
*/
public get isDisposed(): boolean {
return this.disposables.isDisposed;
}
}