UntilDestroy() in the AppComponent with AngularUniversal #153
Unanswered
FunnyGhost
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hey @FunnyGhost . Not sure I understand your question correctly. We don't have any references to The topic of clearing subscriptions is a huge topic. I'm sure there are dozens of informations across the internet where you can find "why you have to always unsubscribe from observables". |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First: thanks for the awesome utility!
Now, I have an interesting scenario: If I use the UntilDestroy decorator in the AppComponent, the Server Side Rendering fails with
ReferenceError: Document is not defined
.But this triggered another question. Do we actually need to manage app wide subscriptions? Those would be cleared anyway when you close the website, right? What about when we do Server Side rendering?
Beta Was this translation helpful? Give feedback.
All reactions