DEV Community

Discussion on: Using image in Gatsby application by a clear way

Collapse
 
conspire_agency profile image
Conspire Agency • Edited

Have you ever seen a Gatsby Image wrapper (think that's what you'd call it) used to dynamically make the graph ql queries. Gatsby Image is great and all, but when you're using it for multiple images in a component the graphql really can get messy bloating the component.

Would be nice if you could for example:

<ImageWrapper fluid='filename.jpg' /> or <ImageWrapper fixed='filename.jpg' />

With all the graphql static queries internalized in the wrapper component.