From f94932c83b0e44d2e0f202058217cc43bbb30abb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=20S=C3=B6derlund?= Date: Wed, 2 Oct 2024 14:00:57 +0200 Subject: [PATCH] If URL changes after action then use `Form` --- Development/JavaScript/Remix.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Development/JavaScript/Remix.md b/Development/JavaScript/Remix.md index 765cab7..43b7ebc 100644 --- a/Development/JavaScript/Remix.md +++ b/Development/JavaScript/Remix.md @@ -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)