mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-20 01:55:26 -05:00
Fix root loader revalidating on form submission without redirect
This commit is contained in:
@@ -8,7 +8,9 @@ import { COMMON_PREVIEW_IMAGE } from "./urls";
|
||||
|
||||
export function isRevalidation(args: ShouldRevalidateFunctionArgs) {
|
||||
return (
|
||||
args.defaultShouldRevalidate && args.nextUrl.href === args.currentUrl.href
|
||||
args.defaultShouldRevalidate &&
|
||||
args.nextUrl.href === args.currentUrl.href &&
|
||||
!args.formMethod
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user