Answer the question
In order to leave comments, you need to log in
Why debouncedWatch in the example?
Hello. I support the core of the project, I have already gone through a lot of shit (in my personal opinion, maybe I'm doing shit), but this completely led me to a dead end. Who used vueuse, explain to me, maybe a fool who has already read all of Google. not understanding what is happening here?
In general terms: The code is working with chips from vuetify.
debouncedWatch([() => props.filters, () => state.chips], () => {
selectedFilters.value = reduce(
props.filters,
(result, value, key) => {
if (value && state.chips[key]) result.push(key);
return result;
},
[],
);
});
Answer the question
In order to leave comments, you need to log in
Also here is an array of two like a function expression
debouncedWatch
one can be replaced in your case with a regular one watch
. Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question