Skip to content

Commit

Permalink
If URL changes after action then use Form
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsoderlund committed Oct 2, 2024
1 parent e9ce559 commit f94932c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Development/JavaScript/Remix.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ Blockers and navigate away:

### Form vs useFetcher

**TLDR; If URL changes after action then use `Form`, if not use `useFetcher`.**

https://remix.run/docs/en/main/discussion/form-vs-fetcher

(All: triggers server-side `action` + `loader` once)
Expand Down

0 comments on commit f94932c

Please sign in to comment.