Firefox runs reload animation when navigating (🛠 only in development mode)
See original GitHub issueBug report
Describe the bug
This occurred in a next.js app set up by following the manual setup
In Firefox, a quick refresh is made when navigating from one page to another. I am just using 2 simple pages.
index.js
import Link from 'next/link'
...
<Link href="/about" />
...
about.js
import Link from 'next/link'
...
<Link href="/" />
...
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- Go to terminal
mkdir next-firefox-refresh-test
yarn init -y
yarn add next react react-dom
- Add the following to
package.json
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start"
}
mkdir pages && cd pages && touch index.js && touch about.js
- Open project in desired code editor
- Setup a basic functional component in each file and place a
<Link href="{YOUR_LINK}">{YOUR_PAGE}</Link>
in each component’s return statement. Link the pages to each other. yarn run dev
- Open http://localhost:3000 in Firefox
Expected behavior
When clicking the link to the other page, a navigation without a reload/refresh should happen.
Screenshots
System information
- OS: macOS
- Browser: Firefox
- Version of Next.js: ^9.3.5
- Version of Node.js: 12.8.0
Additional context
What I have tried
- Adding
as="/"
andas="/about"
- Different browsers (works in other browsers)
- Setting up the project using both methods here
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Firefox runs reload animation when navigating ( 🛠 only in ...
Hi, Firefox seems to be showing the reload animation on client side navigations but it is not actually doing a full transition as...
Read more >Work with animations — Firefox Source Docs documentation
Animation inspector¶ · Right-click in the box and select “Inspect Element” · Make sure the selected element is the <div class="channel"> · Switch...
Read more >Reload/stop button's animation seems to stop after entering ...
The animations returned when I restarted my browser session, but go away the moment I go into and then leave customize mode. I...
Read more >Websites show a spinning wheel and never finish loading
This article explains what to do when specific websites (not all) start to load, but never finish (i.e. the tab displays a spinning...
Read more >Responsive Design Mode - Firefox Source Docs - Mozilla
From the Developer Tools toolbox: Press the Responsive Design Mode button in the ... Reload when user agent is changed: when this option...
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
This seems to only occur in development and may be triggered in Firefox from the server-sent events connection used for HMR being disconnected and re-connected. The animation isn’t triggered on a production site leveraging Next.js like https://zeit.co
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.