benhowell/react-grid-gallery

Support for the gatsby

bibekthapa007 opened this issue · 3 comments

Gallery doesnot work properly in gatsby

It would be great, if gallery works with Gatsby Image

I've been using it with Gatsby and SSR without much of a problem, try to not render the Gallery on the server side, by using something like gatsby-plugin-loadable-components-ssr, and passing the ssr flag as false so it does not render on the server:

import loadable from '@loadable/component'

const OtherComponent = loadable(() => import('./OtherComponent'), { ssr: false })

Thanks @layoutzweb