Skip to content

Commit 2d8f5c8

Browse files
committed
A few missed renames
1 parent 6c5f899 commit 2d8f5c8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/react-router/lib/dom/lib.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,7 @@ export interface LinkProps
12921292
* Specify the default revalidation behavior for the navigation.
12931293
*
12941294
* ```tsx
1295-
* <Link to="/some/path" defaultShouldRevalidate={false} />
1295+
* <Link to="/some/path" unstable_defaultShouldRevalidate={false} />
12961296
* ```
12971297
*
12981298
* If no `shouldRevalidate` functions are present on the active routes, then this
@@ -1336,7 +1336,7 @@ const ABSOLUTE_URL_REGEX = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
13361336
* @param {LinkProps.state} props.state n/a
13371337
* @param {LinkProps.to} props.to n/a
13381338
* @param {LinkProps.viewTransition} props.viewTransition [modes: framework, data] n/a
1339-
* @param {LinkProps.defaultShouldRevalidate} props.defaultShouldRevalidate n/a
1339+
* @param {LinkProps.unstable_defaultShouldRevalidate} props.unstable_defaultShouldRevalidate n/a
13401340
*/
13411341
export const Link = React.forwardRef<HTMLAnchorElement, LinkProps>(
13421342
function LinkWithRef(

packages/react-router/lib/router/router.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,6 +1511,7 @@ export function createRouter(init: RouterInit): Router {
15111511
// action/loader this will be ignored and the redirect will be a PUSH
15121512
historyAction = NavigationType.Replace;
15131513
}
1514+
15141515
let preventScrollReset =
15151516
opts && "preventScrollReset" in opts
15161517
? opts.preventScrollReset === true

0 commit comments

Comments
 (0)