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

feat: findComponent can find component inside a Suspense #168

Merged

Conversation

cexbrayat
Copy link
Member

Slightly updates the find implementation to:

  • check the suspense subtree if it is resolved
  • check the suspense fallbackTree otherwise

A test has been added to check if we can find a component in both cases.

Slightly updates the find implementation to:
- check the suspense `subtree` if it is resolved
- check the suspense `fallbackTree` otherwise

A test has been added to check if we can find a component in both cases.
Copy link
Contributor

@dobromir-hristov dobromir-hristov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, dont remember this being there when I tried heh.

@lmiller1990
Copy link
Member

@dobromir-hristov not do I - maybe it was added after. Glad we have this now!

@lmiller1990 lmiller1990 merged commit 6cb26ee into vuejs:master Aug 1, 2020
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

Successfully merging this pull request may close these issues.

3 participants