-
Notifications
You must be signed in to change notification settings - Fork 27.2k
@for with dublicate entries and filter pipe kills browser #58509
Copy link
Copy link
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: coreIssues related to the framework runtimeIssues related to the framework runtimebugcore: control flowIssues related to the built-in control flow (@if, @for, @switch)Issues related to the built-in control flow (@if, @for, @switch)state: has PR
Milestone
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: coreIssues related to the framework runtimeIssues related to the framework runtimebugcore: control flowIssues related to the built-in control flow (@if, @for, @switch)Issues related to the built-in control flow (@if, @for, @switch)state: has PR
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
Yes
Description
I accidentally choose the wrong key for track in a @for, then my browser dies.
The problem get worse if the list of elements gets longer.
How to reproduce:
Go to the input.
Start typing (to filter the list)
Browser freeze.
If the list of user is about 150 ist freeze fo a few secunds.
if it is longer than 300 users, it gets worse.
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/stackblitz-starters-humfi8
Please provide the exception or error you saw
NG0955Browser freeze for few seconds or stops working at all
Please provide the environment you discovered this bug in (run
ng version)Angular CLI: 18.2.10
Node: 18.19.1
Package Manager: npm 10.2.4
OS: darwin arm64
Angular: 18.2.9
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version
@angular-devkit/architect 0.1802.10
@angular-devkit/build-angular 18.2.10
@angular-devkit/core 18.2.10
@angular-devkit/schematics 18.2.10
@angular/cli 18.2.10
@schematics/angular 18.2.10
rxjs 7.8.1
typescript 5.4.5
zone.js 0.14.10
Anything else?
No response