-
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
fix(gatsby-plugin-image): fix image flickers #35226
Conversation
78a01e5
to
8ad1e67
Compare
9c147f7
to
21b6595
Compare
@wardpeet I'm having a hard time separating out the parts that are fix-related from the parts that are refactored, can you add some comments (the GitHub kind, not inline 😄) that point that out? Looks great at first glance |
That's the tricky bit. With the current component, we were constantly unmounting and remounting. It led to the flicker when you were doing page navigations. The old technique is a way to do partial hydration, so we could stop hydrating gatsby-plugin-image, rely on a snippet in HTML, and only hydrate on state changes or navigations. |
Description
Fixes gatsby-plugin-image flickering between page navigations and/or state updates.
Related Issues
Fixes #34190
Fixes #34009