Skip to content

onBeforeUnmount to onUnmounted for consistency #2413

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 1 commit into from
Jun 21, 2023

Conversation

lioumens
Copy link
Contributor

Description of Problem

The rest of this documentation page uses onUnmounted for removing event listeners, including the example this composable directly references. The API also suggests using onUnmounted for this purpose.

Proposed Solution

Update the example to use onUnmounted as well, for consistency with the rest of the page.

@netlify
Copy link

netlify bot commented Jun 19, 2023

Deploy Preview for vuejs ready!

Name Link
🔨 Latest commit f870cce
🔍 Latest deploy log https://app.netlify.com/sites/vuejs/deploys/649050e45a00f50008176002
😎 Deploy Preview https://deploy-preview-2413--vuejs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Member

@bencodezen bencodezen left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @lioumens!

@bencodezen bencodezen merged commit fe15ed8 into vuejs:main Jun 21, 2023
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