This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
bug or docs issue: filters are always invoked for object inputs (regardless of identity or value equality) #14590
Closed
Description
https://plnkr.co/edit/d0J4zqlTZvrsSJvywM0y?p=preview
for primitive inputs, the filter is invoked only if the value changes
docs:
The filter function should be a pure function, which means that it should be stateless and idempotent. Angular relies on these properties and executes the filter only when the inputs to the function change.
so is the behavior for objects a feature or a bug?