-
Hi. Image you have a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
The The route you fetch with |
Beta Was this translation helpful? Give feedback.
-
Thanks for the answer. It works great except the |
Beta Was this translation helpful? Give feedback.
The
useFetcher
hook is exactly for that, but instead of rendering thefetcher.Form
component you call thefetcher.load
method and access the result withfetcher.data
, then you use that to render the autocomplete options.The route you fetch with
useFetcher
can by an UI route or a resource route, if it's only to show autocomplete suggestions it would be simpler to create a resource route by only exporting the loader.