Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.
| Merge branch 'main' into worktree-agent-a0d19db53ce9b29d8 | 1 | /** |
| 2 | * When a Customize page reads its data again: for another page, the other | |
| 3 | * view, or a posted form (lib/customize.ts `needsReload`). A route export | |
| 4 | * the browser runs, so it lives apart from the server-only helpers. | |
| 5 | */ | |
| 6 | import type { ShouldRevalidateFunctionArgs } from "react-router"; | |
| 7 | ||
| 8 | import { needsReload } from "./customize"; | |
| 9 | ||
| 10 | export function shouldRevalidate({ currentUrl, nextUrl, formMethod, defaultShouldRevalidate }: ShouldRevalidateFunctionArgs): boolean { | |
| 11 | return needsReload(currentUrl, nextUrl, formMethod) ? defaultShouldRevalidate : false; | |
| 12 | } |
This file's history is long; its oldest lines are credited to the oldest commit read.