In a Next.js app when you go to a page via a <Link /> click the lines don't load, but when you refresh the page the lines work
See original GitHub issueHey! I was working on a project and noticed this bug and was wondering if you have seen it before? More than happy to look into it and open a PR up.
One thing to note is that I get tons of these errors below both when the arrows don’t show up after accessing the page via a Next.js <Link />
click and also when the arrows work accessing the page directly.
Issue Analytics
- State:
- Created 10 months ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Nextjs causing hard refresh when i click in the Link · Issue #9382
I moved the lines of <Layout> into /pages/_app.js as the following to resolve this issue. It seems to work well. import '../styles/index.
Read more >NextJs <Link> doesn't rerun scripts - Stack Overflow
When I use the <Link> tag in NextJs to navigate between pages it doesn't rerun my scripts after changing pages. It only runs...
Read more >Basic Features: Fast Refresh - Next.js
Next.js' Fast Refresh is a new hot reloading experience that gives you instantaneous feedback on edits made to your React components.
Read more >Link Component - Navigate Between Pages | Learn Next.js
Using <Link>. First, open pages/index.js , and import the Link component from next/link by adding this ...
Read more >next/router | Next.js
Learn more about the API of the Next.js Router, and access the router instance in your page with the useRouter hook.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the quick fix!
Lines are drawn, but there is now this following error output in Remix server console:
On my side, this got fixed using this remix utility to use my component client side only: https://github.com/sergiodxa/remix-utils#clientonly
4.2.1 published, problem should be solved 😊
Thank you!
Please feel free to re-open if it’s not.