-
-
Notifications
You must be signed in to change notification settings - Fork 405
Closed
Description
@ember/object should provide the following APIs:
function isDestroying(obj: object): boolean; // same as isDestroying on Ember.Object
function isDestroyed(obj: object): boolean; // same as isDestroyed on Ember.Object
function onBeforeDestroy<T extends object>(obj: T, callback: (obj: T) => void); // same as willDestroy() on Ember.Object
function destroy(obj: object): void; // same as destroy() on Ember.ObjectThis is required for objects that doesn't inherit from Ember.Object (e.g. Glimmer Components, other native classes) to participate in the destruction protocol (dispose of the "meta", etc).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels