I tried with:
let searchText = $derived(debounce((typedText) => typedText, 2000)(typedText));
But searchText
is not assigned!
Reproduction with
$derived
:searchText
is not assigned.Reproduction with
$effect()
:searchText
assignment is not debounced at all.