Skip to content
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

fix(runtime-core): make HMR working with class components #2144

Merged
merged 1 commit into from
Sep 18, 2020

Conversation

ktsn
Copy link
Member

@ktsn ktsn commented Sep 17, 2020

fix vuejs/vue-class-component#451

Since the raw class component is passed to the HMR reload API, it tries to extract component options from the class constructor which causes the issue. We have to extract its component options if a class is passed to the HMR API.

@ktsn ktsn changed the title fix: make HMR working with class components fix(runtime-core): make HMR working with class components Sep 17, 2020
@yyx990803 yyx990803 merged commit 422f05e into vuejs:master Sep 18, 2020
@ktsn ktsn deleted the hot-reload-class-component branch September 18, 2020 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Property "message" was accessed during render but is not defined on instance. - Vue 3 & TypeScript
2 participants