vue-lib-template icon indicating copy to clipboard operation
vue-lib-template copied to clipboard

Changing props does not update

Open richardmward opened this issue 1 year ago • 1 comments

If you run the playground app and then edit lib\src\Component.vue to change the prop, e.g. rename message to msg, saving updates the UI and hides the message on the screen (as you would expect, it's no longer receiving a value for that prop). However, if you then update App.vue in the playground to use msg not message, whilst you can see HMR fires an update for App.vue it does not start rendering the message again. The JS console prints some warnings stating that you are passing an extraneous prop msg and missing the required prop message.

This is the case regardless of whether the component is registered via a plugin, or imported directly in App.vue.

It's easily worked around with a quick refresh - but perhaps there is a way to get it working?

richardmward avatar Mar 29 '23 13:03 richardmward