Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing props does not update #3

Open
richardmward opened this issue Mar 29, 2023 · 1 comment
Open

Changing props does not update #3

richardmward opened this issue Mar 29, 2023 · 1 comment

Comments

@richardmward
Copy link

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?

@peoray
Copy link

peoray commented Apr 12, 2023

@richardmward are you still having this issue? Strangely, I didn't encountered it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants