« All deprecation guides
Deprecation Guide for Ember._registerDestructor
until: 7.0.0
id: deprecate-import--register-destructor-from-ember
Previously, _registerDestructor
could be accessed via the Ember
import:
import Ember from 'ember';
Ember._registerDestructor
If needed, _registerDestructor
can be imported:
import { registerDestructor } from '@ember/destroyable';