You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { foo } from "./foo";
if (module.hot) {
const api = require("vue-hot-reload-api");
api.install(Vue);
if(!module.hot.data) {
api.createRecord("foo-id", foo);
} else {
api.reload("foo-id", foo);
}
module.hot.accept();
}
const app = new Vue({
el: "#app",
components: {
"foo": foo
}
});
After a hot reload the HTML bindings seem to be lost. The html is served from a server and bound on the client. Is there a way to make that work with hot reloading? I'm trying out a progressive enhancement approach.
Thank you in advance!
The text was updated successfully, but these errors were encountered:
Sample code:
After a hot reload the HTML bindings seem to be lost. The html is served from a server and bound on the client. Is there a way to make that work with hot reloading? I'm trying out a progressive enhancement approach.
Thank you in advance!
The text was updated successfully, but these errors were encountered: