Skip to content

Commit

Permalink
Add placeholder for partial hydration
Browse files Browse the repository at this point in the history
  • Loading branch information
lbebber committed Mar 25, 2020
1 parent d06920e commit ff7fb40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion react/Footer.js
Expand Up @@ -21,7 +21,8 @@ const Footer = props => {
const { isMobile } = useDevice()

if (!shouldRenderBelowTheFold) {
return null
// This is a placeholder for partial hydration
return <div style={{ height: 400 }} />
}

const hasFooterLayout = hasFooterDesktop || hasFooterMobile
Expand Down

0 comments on commit ff7fb40

Please sign in to comment.