-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Message: 在 HMR 开发模式下,会导致 Attempt to use a destroyed 异常 #3845
Comments
Translation of this issue:Message: In the HMR development mode, it will cause Attempt to use a destroyed exception.Reproducehttps://stackblitz.com/edit/angular-uif43a?file=src%2Fapp%2Fapp.component.ts step:
Although it has no effect in the production environment, it is very troublesome for the HMR development environment. Especially when the message needs to be triggered, the error will cause the subsequent actions to not continue. It will take effect after the |
🤔
💡 Because of this line. When the application hot reloads, |
@cipchk I cannot reproduce the problem in a local project. Any idea? |
@wendzhue A minimal reproduction link: https://github.com/cipchk/zorro-issues-3845 Setps:
|
重现
https://stackblitz.com/edit/angular-uif43a?file=src%2Fapp%2Fapp.component.ts
步骤:
template: ''
录入任意字符,触发一次 HMR 的加载Attempt to use a destroyed
虽然在生产环境下无影响,但对于 HMR 开发环境下,会非常麻烦,特别是在需要触发 Message 时该错误会导致后续的动作无法继续,非要刷新
Command + R
后才会生效。Version:
The text was updated successfully, but these errors were encountered: