-
We can make a watcher pausable like this: const watcher = watchPausable(input, handler) And a debounceable watcher like this: debouncedWatch(input, handler, { debounce: 500 }) But how would you combine both of these behaviours ? |
Beta Was this translation helpful? Give feedback.
Answered by
noook
Feb 13, 2024
Replies: 1 comment
-
Found the solution: import { debounceFilter } from '@vueuse/core';
const translateWatcher = pausableWatch(source, callback, {
eventFilter: debounceFilter(500),
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
noook
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found the solution: