vue-lib-template
vue-lib-template copied to clipboard
Changing props does not update
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?