Skip to content

Commit a70341d

Browse files
sirlancelotyyx990803
authored andcommitted
Keep App component isolated from Root component (vuejs#151)
This will fix the Webpack hot-reload `"Root or manually mounted instance modified. Full reload required."` warning that gets thrown when you update `App.vue`.
1 parent b223196 commit a70341d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Object.keys(filters).forEach(key => {
2020
const app = new Vue({
2121
router,
2222
store,
23-
...App
23+
render: h => h(App)
2424
})
2525

2626
// expose the app, the router and the store.

0 commit comments

Comments
 (0)