loading...

re: Creating a Custom React Hook for Gatsby Site Metadata VIEW POST

FULL DISCUSSION
 

Love this!

I really hated the way StaticQuery was typically written--it was a real turn-off for using Gatsby. I've much preferred the useStaticQuery hook, and I really like making a custom hook for site metadata! (Gatsby's queries are sooooo verbose...)

 

Thanks @tvanantwerp ♥️

I really quite liked the render props pattern for not so deeply nested components.

When using it for things like Apollo it does get quite hairy!🙃

Code of Conduct Report abuse