We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2b49ad commit 27179f6Copy full SHA for 27179f6
packages/vue-jsx-vapor/src/core/hmr.ts
@@ -111,7 +111,11 @@ export function injectHMRAndSSR(
111
`\n${local}.__hmrId = "${id}";` +
112
`\n__VUE_HMR_RUNTIME__.createRecord("${id}", ${local});`
113
callbackCode += `
114
- __VUE_HMR_RUNTIME__.rerender(mod['${exported}'].__hmrId, mod['${exported}'].setup || mod['${exported}']);`
+ if (typeof mod['${exported}'] === 'function') {
115
+ __VUE_HMR_RUNTIME__.rerender(mod['${exported}'].__hmrId, mod['${exported}']);
116
+ } else {
117
+ __VUE_HMR_RUNTIME__.reload(mod['${exported}'].__hmrId, mod['${exported}']);
118
+ };`
119
}
120
121
code += `
0 commit comments