You don't need to use this module unless you want to customise the request debounce delay and minimum character count to perform a request.
update : Msg -> Model -> ( Model, Cmd Msg )
update msg model =
case msg of
SelectMsg subMsg ->
Select.updateWithRequest
(Select.request fetchThings
|> Select.Request.withDelay 200
|> Select.Request.withMinLength 4
)
SelectMsg
subMsg
model.select
|> Tuple.mapFirst (\select -> { model | select = select })How many characters does a user need to type before a request is sent. If this is too low you may get an unmanagable number of results!
For debouncing. How long should we wait after a user stops typing before sending a request?