Skip to content

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

Merged
merged 3 commits into from
Jun 16, 2020

Conversation

kamilogorek
Copy link
Contributor

No description provided.

@getsentry-bot
Copy link
Contributor

getsentry-bot commented Jun 16, 2020

Warnings
⚠️ Please add a changelog entry for your changes.
Messages
📖

@sentry/browser bundle gzip'ed minified size: (ES5: 17.0986 kB) (ES6: 16.1699 kB)

📖 ✅ TSLint passed

Generated by 🚫 dangerJS against e4261ab

@@ -252,7 +247,7 @@ export class Vue implements Integration {
}
};

const childHandler = (hook: Hook) => {
const childHandler = (hook: Hook, operation: Operation) => {
Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Member

@AbhiPrasad AbhiPrasad left a 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)

@AbhiPrasad
Copy link
Member

Oh yes before I forget, these lifecycles are only for Vue 2.0 right? Do we want to support 1.0 lifecyles too - https://v1.vuejs.org/guide/instance.html#Lifecycle-Diagram?

@kamilogorek kamilogorek merged commit 95b13d5 into master Jun 16, 2020
@kamilogorek kamilogorek deleted the vue-ux branch June 16, 2020 14:27
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.

4 participants