Skip to content

How to combine watchDebounced and watchIgnorable? #2414

Answered by EShebunin
iBobik asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
https://vueuse.org/shared/watchWithFilter/#watchwithfilter
const count = ref(0); const {ignoreUpdates} = watchIgnorable(count, (v) => { console.log(v); }, { eventFilter: debounceFilter(500), }); const ignoreUpdatesCount = ignoreUpdates(() => count.value++);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@iBobik
Comment options

Answer selected by iBobik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants