File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
packages/react-router/lib Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff 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 */
13411341export const Link = React . forwardRef < HTMLAnchorElement , LinkProps > (
13421342 function LinkWithRef (
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments