-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
vNode hooks are not triggering if a component does not have any props declared #684
Comments
Hmm, maybe we should rename the When used on a component, they are passed down to the component as part of The thing to note here is that a component with optional props doesn't perform the auto-spread behavior. I think this could be confusing so we may want to rethink that behavior. |
I personally would find it very useful for hooks to not contain any information of what they are related to and use them directly, like this: <FooBar @mounted="onFooBarMounted" /> This goes on par with the component options and does not conflict with them since they're prefixed with I don't know much about native vue renderers, but I'm pretty sure there's no such concept as |
Version
3.0.0-alpha.4
Reproduction link
JSFiddle
Steps to reproduce
@vnodeMounted="onMounted"
What is expected?
Hooks should be working without declaring any props
The text was updated successfully, but these errors were encountered: