mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-12 22:11:06 -05:00
8 lines
233 B
TypeScript
8 lines
233 B
TypeScript
import type { ShouldRevalidateFunctionArgs } from "@remix-run/react";
|
|
|
|
export function isRevalidation(args: ShouldRevalidateFunctionArgs) {
|
|
return (
|
|
args.defaultShouldRevalidate && args.nextUrl.href === args.currentUrl.href
|
|
);
|
|
}
|