Skip to content

rerender vs reload #41

Open
Open
@jjrv

Description

@jjrv

I'm trying to get vue-hot-reload-api working with SystemJS instead of Webpack. Currently if I call api.reload, it doesn't seem to re-render the component, at least if only the render function has changed. Instead it only re-renders the parent, not the changed component. Is this correct? vue-loader seems to only ever call reload though.

Should I call both reload and rerender to make sure the component updates completely?

I'm modifying a component App mounted like this:

new Vue({
	el: '#app',
	components: { App },
	render: (h) => h('app')
});

When this API calls instance.$parent.$forceUpdate() here, it seems to decide here that it got back the same vnode as earlier and doesn't render it again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions