Debounce and throttle support on "Computed".
What problem does this feature solve?
I have a setting using computed to implement dynamic structure. But type words always recalculate computed result too quickly. Also, I need debouce some times to improve performance, when using computed on somewhere user input.
What does the proposed API look like?
const formSetting = computed({ get:()=>{ return {sth...} }, debounce:1000 })
Use refDebounced
from VueUse instead.
Doc: https://vueuse.org/shared/refDebounced/