diff --git a/contributors.yml b/contributors.yml index 2871bc217c..2d62c54217 100644 --- a/contributors.yml +++ b/contributors.yml @@ -311,3 +311,4 @@ - yuleicul - zeromask1337 - zheng-chuang +- serranoarevalo diff --git a/docs/start/framework/route-module.md b/docs/start/framework/route-module.md index 0915b7db03..52b31b1923 100644 --- a/docs/start/framework/route-module.md +++ b/docs/start/framework/route-module.md @@ -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; }