We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v6.0.0-beta.6
I have the following sample:
return <Router basename="/_basePath"> //... <Link to="/page1"/> //... </Router>;
I expected the following output:
<a href="/_basePath/page1"></a>
In some cases I get the following result as the Link component is rendered multiple times:
<a href="/_basePath/_basePath/_basePath/page1"></a>
The issue is that useHref is overwriting the reference which is returned from useResolvedPath and prepend the basepath multiple times:
useHref
useResolvedPath
react-router/packages/react-router/index.tsx
Line 402 in f41e3c9
The text was updated successfully, but these errors were encountered:
Thanks for fix in v6.0.0-beta.8
Sorry, something went wrong.
No branches or pull requests
What version of React Router are you using?
v6.0.0-beta.6
Steps to Reproduce
I have the following sample:
Expected Behavior
I expected the following output:
Actual Behavior
In some cases I get the following result as the Link component is rendered multiple times:
The issue is that
useHref
is overwriting the reference which is returned fromuseResolvedPath
and prepend the basepath multiple times:react-router/packages/react-router/index.tsx
Line 402 in f41e3c9
The text was updated successfully, but these errors were encountered: