State Management · Middle · Question 47 of 75
When should you use useFetcher instead of <Form>?
- ✓Correct answer: To call a loader/action without navigating, e.g. a "like" button in a list
- 2To submit a form that must navigate to a new page
- 3To fetch data from a third-party API in
useEffect
Explanation
A fetcher has its own state (fetcher.state, fetcher.data) and doesn't change the URL, so many independent mutations can run on one page (a todo list, inline edits).