Skip to content

Commit

Permalink
use args type in shouldRevalidateLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish committed Aug 11, 2023
1 parent 2030d24 commit e00cac7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/router/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import type {
RedirectResult,
RouteData,
RouteManifest,
ShouldRevalidateFunction,
ShouldRevalidateFunctionArgs,
Submission,
SuccessResult,
V7_FormMethod,
Expand Down Expand Up @@ -3513,7 +3513,7 @@ function isNewRouteInstance(

function shouldRevalidateLoader(
loaderMatch: AgnosticDataRouteMatch,
arg: Parameters<ShouldRevalidateFunction>[0]
arg: ShouldRevalidateFunctionArgs
) {
if (loaderMatch.route.shouldRevalidate) {
let routeChoice = loaderMatch.route.shouldRevalidate(arg);
Expand Down

0 comments on commit e00cac7

Please sign in to comment.