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

props don't update in async setup method #649

Closed
hdahlheim opened this issue Jan 21, 2020 · 0 comments
Closed

props don't update in async setup method #649

hdahlheim opened this issue Jan 21, 2020 · 0 comments

Comments

@hdahlheim
Copy link

Version

3.0.0-alpha.1

Reproduction link

https://github.com/hdahlheim/vue-next-suspense-props

Steps to reproduce

  • yarn dev
  • click the button on the page

What is expected?

Both components should update

What is actually happening?

The component with the async setup method does not update


I tried to build a component that fetches some information for a given id and shows a 'loading" component if not done. I expected that I would be able to use watch inside the async setup method to refetch data if the id changes. I then noticed that the props in async setup methods don't react to changes.
I was not able to find a lot of information on how suspense and async setup methods are supposed to work in vue 3. If this intended behavior I apologize.

underfin added a commit to underfin/vue-next that referenced this issue Jan 22, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Nov 16, 2023
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

1 participant