It'd be nice if Link supported passing parameters to navigate().
For example, I'd like to be able to have a link like this, where replace: true is passed to navigate():
<Link
href={exampleUrl}
replace={true}
>
...
</Link>
I think this would be pretty easy:
function Link({ href, basePath, replace, query, state, ...props }: LinkProps, ref?: Ref<HTMLAnchorElement>) {
...
navigate(e.currentTarget.href, {replace: replace, query: query, state: state})
...
}
I'd be happy to provide a PR :)