Skip to content

docs: recommend using tryOnScopeDispose instead of tryOnUnmounted #4970

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
Aug 17, 2025

Conversation

ilyaliao
Copy link
Member

Description

This PR updates the guidelines to recommend using tryOnScopeDispose instead of tryOnUnmounted for cleaning up side-effects.

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. documentation Improvements or additions to documentation labels Aug 16, 2025
Copy link

pkg-pr-new bot commented Aug 16, 2025

Open in StackBlitz

@vueuse/components

npm i https://pkg.pr.new/@vueuse/components@4970

@vueuse/core

npm i https://pkg.pr.new/@vueuse/core@4970

@vueuse/electron

npm i https://pkg.pr.new/@vueuse/electron@4970

@vueuse/firebase

npm i https://pkg.pr.new/@vueuse/firebase@4970

@vueuse/integrations

npm i https://pkg.pr.new/@vueuse/integrations@4970

@vueuse/math

npm i https://pkg.pr.new/@vueuse/math@4970

@vueuse/metadata

npm i https://pkg.pr.new/@vueuse/metadata@4970

@vueuse/nuxt

npm i https://pkg.pr.new/@vueuse/nuxt@4970

@vueuse/router

npm i https://pkg.pr.new/@vueuse/router@4970

@vueuse/rxjs

npm i https://pkg.pr.new/@vueuse/rxjs@4970

@vueuse/shared

npm i https://pkg.pr.new/@vueuse/shared@4970

commit: 2fb3575

@antfu antfu merged commit 9c1677d into vueuse:main Aug 17, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants