-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
Describe the bug
debTest
gets updated immediately instead of after a 1000ms delay.
const test = ref({ value: 'TEST' });
const debTest = refDebounced(test, 1000, { maxWait: 2000 });
Doing this works but is quite wordy with bigger objects.
const test = ref({ value: 'TEST' });
const debTest = refDebounced(
computed(() => ({ value: test.value.value })),
1000,
{ maxWait: 2000 }
);
Reproduction
examples provided above
System Info
System:
OS: Windows 10 10.0.22621
CPU: (16) x64 AMD Ryzen 7 5700U with Radeon Graphics
Memory: 2.19 GB / 15.33 GB
Binaries:
Node: 20.1.0 - C:\Program Files\nodejs\node.EXE
npm: 9.6.4 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Spartan (44.22621.1702.0), Chromium (114.0.1823.43)
Internet Explorer: 11.0.22621.1
npmPackages:
@vueuse/core: ^10.1.2 => 10.1.2
@vueuse/nuxt: ^10.1.2 => 10.1.2
vue: ^3.3.2 => 3.3.4
Used Package Manager
npm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.
Metadata
Metadata
Assignees
Labels
No labels