Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 489 Bytes

template-no-negated-async.md

File metadata and controls

11 lines (6 loc) · 489 Bytes

Pattern: Use of negated async

Issue: -

Description

Angular’s async pipes emit null initially, prior to the observable emitting any values, or the promise resolving. This can cause negations, like *ngIf="!(myConditional | async)" to thrash the layout and cause expensive side-effects like firing off XHR requests for a component which should not be shown.

Further Reading