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

fix: support passing functional components as stub implementation #700

Merged
merged 1 commit into from
Jun 28, 2021

Conversation

xanf
Copy link
Collaborator

@xanf xanf commented Jun 27, 2021

Current check for type of stub (typeof stub === 'object') is too restrictive and does not take into account functional components. Fix this

As a side effect, this also fix using legacy components as stubs when using @vue/compat

@lmiller1990 lmiller1990 merged commit 21c0197 into vuejs:master Jun 28, 2021
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.

2 participants