Skip to content

fix(useThrottleFn): schedule trailing edge when leading is disabled - #5513

Open
babu-ch wants to merge 2 commits into
vueuse:mainfrom
babu-ch:fix/throttle-filter-leading-false-trailing
Open

fix(useThrottleFn): schedule trailing edge when leading is disabled#5513
babu-ch wants to merge 2 commits into
vueuse:mainfrom
babu-ch:fix/throttle-filter-leading-false-trailing

Conversation

@babu-ch

@babu-ch babu-ch commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Fixes #5512

@pkg-pr-new

pkg-pr-new Bot commented Jun 19, 2026

Copy link
Copy Markdown

Open in StackBlitz

@vueuse/components

pnpm add https://pkg.pr.new/@vueuse/components@5513
npm i https://pkg.pr.new/@vueuse/components@5513
yarn add https://pkg.pr.new/@vueuse/components@5513.tgz

@vueuse/core

pnpm add https://pkg.pr.new/@vueuse/core@5513
npm i https://pkg.pr.new/@vueuse/core@5513
yarn add https://pkg.pr.new/@vueuse/core@5513.tgz

@vueuse/electron

pnpm add https://pkg.pr.new/@vueuse/electron@5513
npm i https://pkg.pr.new/@vueuse/electron@5513
yarn add https://pkg.pr.new/@vueuse/electron@5513.tgz

@vueuse/firebase

pnpm add https://pkg.pr.new/@vueuse/firebase@5513
npm i https://pkg.pr.new/@vueuse/firebase@5513
yarn add https://pkg.pr.new/@vueuse/firebase@5513.tgz

@vueuse/integrations

pnpm add https://pkg.pr.new/@vueuse/integrations@5513
npm i https://pkg.pr.new/@vueuse/integrations@5513
yarn add https://pkg.pr.new/@vueuse/integrations@5513.tgz

@vueuse/math

pnpm add https://pkg.pr.new/@vueuse/math@5513
npm i https://pkg.pr.new/@vueuse/math@5513
yarn add https://pkg.pr.new/@vueuse/math@5513.tgz

@vueuse/metadata

pnpm add https://pkg.pr.new/@vueuse/metadata@5513
npm i https://pkg.pr.new/@vueuse/metadata@5513
yarn add https://pkg.pr.new/@vueuse/metadata@5513.tgz

@vueuse/nuxt

pnpm add https://pkg.pr.new/@vueuse/nuxt@5513
npm i https://pkg.pr.new/@vueuse/nuxt@5513
yarn add https://pkg.pr.new/@vueuse/nuxt@5513.tgz

@vueuse/router

pnpm add https://pkg.pr.new/@vueuse/router@5513
npm i https://pkg.pr.new/@vueuse/router@5513
yarn add https://pkg.pr.new/@vueuse/router@5513.tgz

@vueuse/rxjs

pnpm add https://pkg.pr.new/@vueuse/rxjs@5513
npm i https://pkg.pr.new/@vueuse/rxjs@5513
yarn add https://pkg.pr.new/@vueuse/rxjs@5513.tgz

@vueuse/shared

pnpm add https://pkg.pr.new/@vueuse/shared@5513
npm i https://pkg.pr.new/@vueuse/shared@5513
yarn add https://pkg.pr.new/@vueuse/shared@5513.tgz

@vueuse/skills

pnpm add https://pkg.pr.new/@vueuse/skills@5513
npm i https://pkg.pr.new/@vueuse/skills@5513
yarn add https://pkg.pr.new/@vueuse/skills@5513.tgz

commit: b90afc0

@babu-ch
babu-ch marked this pull request as ready for review June 19, 2026 15:17
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jun 19, 2026
@codecov

codecov Bot commented Jun 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.20%. Comparing base (5b2721f) to head (b90afc0).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5513      +/-   ##
==========================================
+ Coverage   67.17%   67.20%   +0.02%     
==========================================
  Files         346      346              
  Lines        8222     8232      +10     
  Branches     2520     2539      +19     
==========================================
+ Hits         5523     5532       +9     
- Misses       2201     2202       +1     
  Partials      498      498              

☔ View full report in Codecov by Harness.
📢 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG | refThrottled | refThrottled doesn't throttle consistently when leading: false

1 participant