« All deprecation guides
Deprecation Guide for Ember.subscribe
until: 7.0.0
id: deprecate-import-subscribe-from-ember
Previously, subscribe
could be accessed via the Ember
import:
import Ember from 'ember';
Ember.subscribe
subscribe
is also private.
If needed, subscribe
can be imported:
import { subscribe } from '@ember/instrumentation';
However, due to subscribe
being private, it is not recommended, nor supported.