Skip to content

perf(usePreferredLanguages): use shallowRef for better performance #4973

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 19, 2025

Conversation

ilyaliao
Copy link
Member

@ilyaliao ilyaliao commented Aug 18, 2025

Description

This PR refactors usePreferredLanguages to use shallowRef for better performance.

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Aug 18, 2025
Copy link

pkg-pr-new bot commented Aug 18, 2025

Open in StackBlitz

@vueuse/components

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

@vueuse/core

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

@vueuse/electron

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

@vueuse/firebase

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

@vueuse/integrations

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

@vueuse/math

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

@vueuse/metadata

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

@vueuse/nuxt

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

@vueuse/router

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

@vueuse/rxjs

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

@vueuse/shared

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

commit: 614b590

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Aug 19, 2025
@antfu antfu added this pull request to the merge queue Aug 19, 2025
Merged via the queue into vueuse:main with commit 361c843 Aug 19, 2025
10 checks passed
@ilyaliao ilyaliao deleted the perf/usePreferredLanguages branch August 19, 2025 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants