-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Gatsby image flicker when navigating to another page #18858
Comments
Did you also try that after a |
@LekoArts I have a link to the demo included in the Steps to reproduce |
I've seen that, yes. But I'd kindly ask you to provide a minimal reproduction and the link to that as a live version isn't enough. Also, could you please answer my questions, that would help. Thanks! |
Yes, this always happens. Let me go ahead an make a minimal reproduction for you. |
Here's a repo for the minimal reproduction. https://github.com/dickwyn/bug-18858 Continuously click the "Go to..." button, doesn't matter the speed you click it. The top image will periodically flash. |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
bump |
The same issue occurs on my site. |
Same here; a bit subtle, but trigger worthy 😶. I've checked a good portion of gatsby starters and it occasionally shows, although much more noticeable when cache is disabled on chrome devtools. |
I was able to fix it by setting |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Hey again! It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Thanks again for being part of the Gatsby community! 💪💜 |
I don't think we fixed this, can anyone create a reproduction git repository we can use to reproduce this? Thanks in advance! |
@wardpeet I have one here |
I'm facing the same issue when using gatsby-background-image which I believe uses gatsby-image under the hood. |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Hey again! It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Thanks again for being part of the Gatsby community! 💪💜 |
This is because Cache-Control HTTP header, The |
I'm having this issue in the latest version of Gatsby. The flicker happens any time a component containing a const [arbitrary, setArbitrary] = useState(0)
useEffect(() => {
setInterval(() => {
setArbitrary(i => i + 1)
}, 3000)
}, []) This is what I saw in Chrome Devtools: Screen.Recording.2021-06-22.at.9.08.15.PM.movIn my case, this was caused because the object being passed to the I consider this to be a bug in |
Related to #34190 which contains a screen recording and a simple reproduction of this issue. |
Description
My header component uses an optimized image from gatsby-plugin-sharp and I am rendering it with gatsby-image. I noticed that the image flickers when I am changing between pages (eg. between home and page 2).
I updated to the latest version of gatsby and gatsby-image
I tried debugging by putting the same image in the header component but using the tag with a relative import as the src.
Here's a gif showing the behavior, notice the top icon flickers - https://imgur.com/a/wH2qD8Z
Steps to reproduce
Demo of behavior
Expected result
Icon should remain static
Actual result
Icon on header is flickering
Environment
The text was updated successfully, but these errors were encountered: