Skip to content

Comments

feat: support configurable scheduler for timed composables#5129

Merged
antfu merged 28 commits intovueuse:mainfrom
9romise:feat/scheduler-redesign
Jan 26, 2026
Merged

feat: support configurable scheduler for timed composables#5129
antfu merged 28 commits intovueuse:mainfrom
9romise:feat/scheduler-redesign

Conversation

@9romise
Copy link
Member

@9romise 9romise commented Oct 31, 2025

Description

This PR is redesigned with #5070.

For those interested in this configuration option:
Please refer to the preview version at: https://deploy-preview-5129--vueuse.netlify.app/guide/config.html#custom-scheduler
For the official documentation, see: https://vueuse.org/guide/config.html#custom-scheduler

Additional context

@9romise

This comment was marked as resolved.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 11, 2025

Open in StackBlitz

@vueuse/components

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

@vueuse/core

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

@vueuse/electron

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

@vueuse/firebase

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

@vueuse/integrations

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

@vueuse/math

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

@vueuse/metadata

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

@vueuse/nuxt

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

@vueuse/router

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

@vueuse/rxjs

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

@vueuse/shared

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

commit: 3fa6e43

@codecov
Copy link

codecov bot commented Nov 14, 2025

Codecov Report

❌ Patch coverage is 64.28571% with 30 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.29%. Comparing base (0c346a9) to head (3fa6e43).

Files with missing lines Patch % Lines
packages/core/useElementByPoint/index.ts 0.00% 9 Missing and 1 partial ⚠️
packages/core/useMemory/index.ts 0.00% 9 Missing ⚠️
packages/core/useVibrate/index.ts 0.00% 6 Missing and 1 partial ⚠️
packages/core/useTimeAgoIntl/index.ts 60.00% 1 Missing and 1 partial ⚠️
packages/core/useCountdown/index.ts 93.75% 1 Missing ⚠️
packages/core/useWebSocket/index.ts 91.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5129      +/-   ##
==========================================
- Coverage   64.36%   64.29%   -0.08%     
==========================================
  Files         343      343              
  Lines        6586     6629      +43     
  Branches     2001     2027      +26     
==========================================
+ Hits         4239     4262      +23     
- Misses       1946     1965      +19     
- Partials      401      402       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@9romise 9romise marked this pull request as ready for review November 26, 2025 13:39
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Nov 26, 2025
@dosubot dosubot bot added the enhancement New feature or request label Nov 26, 2025
@antfu antfu added the direction: approved The direction of feature/change is approved by the team. May require some small changes. label Nov 27, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 6, 2026
@OrbisK
Copy link
Member

OrbisK commented Jan 6, 2026

Partially related to this PR:

We should update the guidelines at some point:
image

@9romise 9romise requested a review from antfu January 14, 2026 09:33
@antfu antfu added this pull request to the merge queue Jan 26, 2026
Merged via the queue into vueuse:main with commit 66aad3c Jan 26, 2026
11 of 12 checks passed
@9romise 9romise deleted the feat/scheduler-redesign branch January 26, 2026 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

direction: approved The direction of feature/change is approved by the team. May require some small changes. enhancement New feature or request lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants