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

Component does not re-render after changing prop #872

Closed
nekosaur opened this issue Oct 1, 2020 · 1 comment
Closed

Component does not re-render after changing prop #872

nekosaur opened this issue Oct 1, 2020 · 1 comment

Comments

@nekosaur
Copy link

nekosaur commented Oct 1, 2020

Describe the bug

Updating bar prop of Foo component in App.vue does not trigger a re-render. Although the console shows [vite] /src/App.vue template updated.

If the template in App.vue is changed to

<template>
  <foo bar="baz" />
</template>

then everything works fine.

Reproduction

https://github.com/nekosaur/vite-prop-update

System Info

  • required vite version: 1.0.0-rc.4
  • required Operating System: Windows 10
  • required Node version: v12.18.4
  • npm/yarn version: 1.22.5
  • Installed vue version (from yarn.lock or package-lock.json): 3.0.0
  • Installed @vue/compiler-sfc version: 3.0.0
@underfin
Copy link
Member

It is already fixed in vue-next, close for now.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants