Skip to content
Prev Previous commit
Next Next commit
fixup! perf(core): use ngDevMode to tree-shake checkNoChanges
  • Loading branch information
arturovt committed Dec 4, 2020
commit 2d56c2b23dcce9127d12e6678da1a2076218317f
2 changes: 2 additions & 0 deletions packages/core/src/application_ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,8 @@ export class ApplicationRef {
for (let view of this._views) {
view.detectChanges();
}
// Note that we have still left the `isDevMode()` condition in order to avoid
// creating a breaking change for projects that still use the View Engine.
if ((typeof ngDevMode === 'undefined' || ngDevMode) && isDevMode()) {
for (let view of this._views) {
view.checkNoChanges();
Expand Down