From e262df8a4152196124a75598fc98660f92f5ae10 Mon Sep 17 00:00:00 2001 From: Eli Black Date: Mon, 4 Aug 2025 14:34:24 -0600 Subject: [PATCH 1/3] Make `` support passing params to `navigate()` --- src/Link.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Link.tsx b/src/Link.tsx index 30ae2e9..6fe1b21 100644 --- a/src/Link.tsx +++ b/src/Link.tsx @@ -1,9 +1,9 @@ import React, { useCallback, forwardRef, Ref } from 'react' -import { navigate } from './navigate' +import { navigate, NavigateOptions } from './navigate' import { useBasePath, useFullPath } from './location' -export interface LinkProps extends React.AnchorHTMLAttributes { +export interface LinkProps extends React.AnchorHTMLAttributes, NavigateOptions { href: string basePath?: string children?: React.ReactNode @@ -15,7 +15,7 @@ export interface ActiveLinkProps extends LinkProps { exactActiveClass?: string } -function Link({ href, basePath, ...props }: LinkProps, ref?: Ref) { +function Link({ href, basePath, replace, query, state, ...props }: LinkProps, ref?: Ref) { basePath = useLinkBasePath(basePath) href = getLinkHref(href, basePath) @@ -31,7 +31,7 @@ function Link({ href, basePath, ...props }: LinkProps, ref?: Ref Date: Wed, 13 Aug 2025 14:37:14 -0600 Subject: [PATCH 2/3] Fixed formatting --- src/Link.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Link.tsx b/src/Link.tsx index 6fe1b21..66459e9 100644 --- a/src/Link.tsx +++ b/src/Link.tsx @@ -15,7 +15,10 @@ export interface ActiveLinkProps extends LinkProps { exactActiveClass?: string } -function Link({ href, basePath, replace, query, state, ...props }: LinkProps, ref?: Ref) { +function Link( + { href, basePath, replace, query, state, ...props }: LinkProps, + ref?: Ref, +) { basePath = useLinkBasePath(basePath) href = getLinkHref(href, basePath) From 0b3b64c493e4fc15b01b662a1448e3b58aa5863a Mon Sep 17 00:00:00 2001 From: Eli Black Date: Mon, 29 Sep 2025 13:36:08 -0600 Subject: [PATCH 3/3] Empty commit to force build