Skip to content

Conversation

@laurieontech
Copy link
Contributor

@laurieontech laurieontech commented Jan 4, 2021

Right now, fluid and constrained images trigger a re-layout because the sizer div (living in LayoutWrapper) hasn't loaded yet. This is not a challenge for SSR, but for route navigation.

This updates the dangerouslySetInnerHTML hack to use the sizer elements that fluid and constrained need.

[ch21582]

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jan 4, 2021
@laurieontech laurieontech added topic: media Related to gatsby-plugin-image, or general image/media processing topics and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Jan 4, 2021
Copy link
Contributor

@ascorbic ascorbic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@laurieontech laurieontech merged commit 78e5e47 into master Jan 7, 2021
@laurieontech laurieontech deleted the fix/layout-hydration branch January 7, 2021 13:27
vladar pushed a commit that referenced this pull request Jan 12, 2021
…zy-hydrate (#28841)

* add layoutwrapper to intial render when lazy-hydrate hasn't yet run

* calculate sizer string

(cherry picked from commit 78e5e47)
gatsbybot pushed a commit that referenced this pull request Jan 13, 2021
…zy-hydrate (#28841) (#28990)

* add layoutwrapper to intial render when lazy-hydrate hasn't yet run

* calculate sizer string

(cherry picked from commit 78e5e47)

Co-authored-by: LB <[email protected]>
@vladar
Copy link
Contributor

vladar commented Jan 13, 2021

Published in [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: media Related to gatsby-plugin-image, or general image/media processing topics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants