Skip to content
Discussion options

You must be logged in to vote

The useFetcher hook is exactly for that, but instead of rendering the fetcher.Form component you call the fetcher.load method and access the result with fetcher.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.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jansedlon
Comment options

You must be logged in to vote
3 replies
@gustavopch
Comment options

@mdrahiem
Comment options

@mdrahiem
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants