-
|
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
useFetcherhook is exactly for that, but instead of rendering thefetcher.Formcomponent you call thefetcher.loadmethod and access the result withfetcher.data, then you use that to render the autocomplete options.The route you fetch with
useFetchercan 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.