Skip to content

Commit

Permalink
Export ShouldRevalidateFunctionArgs interface (#10797)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanpprieto committed Aug 18, 2023
1 parent 2208703 commit ae75cdc
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .changeset/export-should-revalidate-args.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"react-router-dom-v5-compat": patch
"react-router-native": patch
"react-router-dom": patch
"react-router": patch
"@remix-run/router": patch
---

Export `ShouldRevalidateFunctionArgs` interface
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
- jonkoops
- jrakotoharisoa
- kachun333
- juanpprieto
- kantuni
- kark
- KAROTT7
Expand Down
1 change: 1 addition & 0 deletions packages/react-router-dom-v5-compat/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export type {
ScrollRestorationProps,
Search,
ShouldRevalidateFunction,
ShouldRevalidateFunctionArgs,
SubmitFunction,
SubmitOptions,
To,
Expand Down
1 change: 1 addition & 0 deletions packages/react-router-dom/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export type {
RoutesProps,
Search,
ShouldRevalidateFunction,
ShouldRevalidateFunctionArgs,
To,
} from "react-router";
export {
Expand Down
1 change: 1 addition & 0 deletions packages/react-router-native/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export type {
RoutesProps,
Search,
ShouldRevalidateFunction,
ShouldRevalidateFunctionArgs,
To,
} from "react-router";
export {
Expand Down
2 changes: 2 additions & 0 deletions packages/react-router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import type {
Router as RemixRouter,
FutureConfig as RouterFutureConfig,
ShouldRevalidateFunction,
ShouldRevalidateFunctionArgs,
To,
} from "@remix-run/router";
import {
Expand Down Expand Up @@ -162,6 +163,7 @@ export type {
RoutesProps,
Search,
ShouldRevalidateFunction,
ShouldRevalidateFunctionArgs,
To,
Blocker as unstable_Blocker,
BlockerFunction as unstable_BlockerFunction,
Expand Down
1 change: 1 addition & 0 deletions packages/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export type {
PathPattern,
RedirectFunction,
ShouldRevalidateFunction,
ShouldRevalidateFunctionArgs,
TrackedPromise,
V7_FormMethod,
} from "./utils";
Expand Down

0 comments on commit ae75cdc

Please sign in to comment.