Angular Hot Reload doesn't destroy components? #6918
Unanswered
observant2
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
https://codesandbox.io/s/black-snow-ip4be2?file=/src/app/timer/timer.component.ts
In this sandbox I tried to model how important unsubscribing is for rxjs observables. But it seems that when codesandbox hot reloads, it doesn't destroy the old component, therefore the console logs observables that should have been unsubscribed. Does this imply that every time I save, a new component gets created? Is this a bug or is there something about how codesandbox hot reloads code?
Beta Was this translation helpful? Give feedback.
All reactions