-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
ref: Change hooks to use simple verbs instead of before/-ed pairs #2675
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
Conversation
@@ -252,7 +247,7 @@ export class Vue implements Integration { | |||
} | |||
}; | |||
|
|||
const childHandler = (hook: Hook) => { | |||
const childHandler = (hook: Hook, operation: Operation) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there an option we expose to make this per component? Like if a user wanted to track multiple hooks for a single component, but use the standard hooks: ['mount', 'update']
for everything else.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it's all configured for the whole app right now. We might do this in the future though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add tests for this in the future (give my vote to using https://testing-library.com/docs/vue-testing-library/intro)
Oh yes before I forget, these lifecycles are only for Vue |
No description provided.