You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
debounced:=debounce.New(400*time.Millisecond)
//fn:=func() []huh.Option[string] {
opts:=make([]huh.Option[string], 0)
debounced(func() {
// fill opts based on inputVarBinding
})
returnopts
}
...OptionsFunc(fn, &inputVarBinding)
but it always returns an empty array
(debounce comes from https://github.com/bep/debounce)
also, the code inside debounced actually runs, it just never returns the value upstream 🤷♂️
if i remove the debounced call, it works
The text was updated successfully, but these errors were encountered:
how can i debounce the input ? i tried this
but it always returns an empty array
(debounce comes from https://github.com/bep/debounce)
also, the code inside debounced actually runs, it just never returns the value upstream 🤷♂️
if i remove the debounced call, it works
The text was updated successfully, but these errors were encountered: