New issue
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
Link
s will sometimes hide the entire page when clicked
#34464
Comments
Link
s will empty the entire page when clicked (RSC)Link
s will empty the entire page when clicked
Link
s will empty the entire page when clickedLink
s will sometimes empty the entire page when clicked
In addition to the problem described above, I also had been talking about another problem with @huozhi for the past couple days, which is one where every single After digging a bit deeper, it turns out that, in both cases, Note that the screenshot I'm showing below is from Vercel's next-react-server-components example, so there's no code present in there that could cause these styles to be added. It must be Next.js or React. |
Link
s will sometimes empty the entire page when clickedLink
s will sometimes hide the entire page when clicked
## Bug Fixes #34464 - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [x] Errors have helpful link attached, see `contributing.md`
Thanks for landing the PR, @huozhi! The issue of self-referencing The issue of the page temporarily hiding on every page transition remains, but I can try to create a separate reproduction case for that, so we can solve that too. |
I feel like it's still related to top-level suspense. I took a note for this. Thanks for reporting 👍 |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
What browser are you using? (if relevant)
Chrome 98.0.4758.80 (arm64)
How are you deploying your application? (if relevant)
Vercel
Describe the Bug
Clicking a
Link
that happens to have the samehref
as the current page causes the entire page to empty.Here's an example:
CleanShot.2022-02-17.at.11.09.48.mp4
This problem only seems to happen with React Server Components enabled.
Expected Behavior
Clicking a
Link
that happens to have the samehref
as the current page should not cause the entire page to go empty.Instead, it should behave exactly like without React Server Components enabled: You just continue to see the current page without any problems.
To Reproduce
<Link href="/rsc">This link points to the current page</Link>
inpages/rsc.server.js
The text was updated successfully, but these errors were encountered: