6.0RC1: canActivate seems to have performance issues #2318
Replies: 5 comments
-
Quick thought @wSedlacek, on mobile so I haven’t dug into the traces yet, but I wonder with everything being Dynamically Imported in v6 that’s a detriment to the router. Can you try eagerly importing Firebase auth in your app module and see if that helps? Just a simple Otherwise I bet it’s zone stuff, as I reimplemented the auth listeners in the guard in v6 rather than leaning on AngularFireAuth, as I wasn’t having luck in ngcc providing both Auth and AuthGuard in the AuthGuardModule. I probably gave up that fight too early. |
Beta Was this translation helpful? Give feedback.
-
No luck with Here is my Angular versioning
|
Beta Was this translation helpful? Give feedback.
-
Thanks for checking. Was just a quick thought after I closed my computer lid for the night. I’ll dig in tonight / tomorrow. |
Beta Was this translation helpful? Give feedback.
-
There is something with perfromance here as well, but I have it all over other places where "async" calls eg are on templates. Not sure if it's also angular related. |
Beta Was this translation helpful? Give feedback.
-
Reproduction: Steps taken to product reproduction in the |
Beta Was this translation helpful? Give feedback.
-
Updated to
6.0.0-rc.1
, the issue with performance still seems to remain for me.Here are two preformance profiles I took, the fast one with
5.4.2
and the slow one on6.0.0-rc.1
profiles.zip
Originally posted by @wSedlacek in #2312 (comment)
Beta Was this translation helpful? Give feedback.
All reactions