You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a default CD cycle, when routerLink is not a string, but a computed array, the ngOnChange triggers each cycle and pushes new tree into registry, creating major UI lag
Steps to reproduce
Add routerLink with computed getter value
Set breakpoint at this.trees.push(tree); in PrefetchRegistryhere
TL; DR
For a default CD cycle, when routerLink is not a string, but a computed array, the ngOnChange triggers each cycle and pushes new tree into registry, creating major UI lag
Steps to reproduce
routerLink
with computed getter valuethis.trees.push(tree);
inPrefetchRegistry
hereCodesandbox example
The issue can only be reproduced with
routerLink
value as a getter. If using path arrays hard-coded into template, the problem does not appear.Images
The text was updated successfully, but these errors were encountered: