Skip to content

Commit

Permalink
docs(start/framework/route-module): fix types (remix-run#12378)
Browse files Browse the repository at this point in the history
* Docs: Change Route.ShouldRevalidateArg for ShouldRevalidateFunctionArgs

* Update contributors.yml
  • Loading branch information
serranoarevalo authored Dec 2, 2024
1 parent 53c452f commit 876d87f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -311,3 +311,4 @@
- yuleicul
- zeromask1337
- zheng-chuang
- serranoarevalo
4 changes: 2 additions & 2 deletions docs/start/framework/route-module.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,10 @@ export default function Root() {
By default, all routes are revalidated after actions. This function allows a route to opt-out of revalidation for actions that don't affect its data.

```tsx
import type { Route } from "./+types/my-route";
import type { ShouldRevalidateFunctionArgs } from "react-router";

export function shouldRevalidate(
arg: Route.ShouldRevalidateArg
arg: ShouldRevalidateFunctionArgs
) {
return true;
}
Expand Down

0 comments on commit 876d87f

Please sign in to comment.