News for hackers. Stuff that matters.
Re:An Honest Review of Gatsby by kualto on Saturday October 03, 2020 @07:59PM (#24675619)
Have you tried using page queries? Page queries can accept arguments passed in via the createPage API. Here's some (admittedly hard to find) documentation about it: https://www.gatsbyjs.com/docs/page-query/#how-to-add-query-v...

The basic idea is your page context just contains identifiers for the content you need to display on the page and then the page query uses those identifiers to query for just those objects and request all the properties of those objects that the page needs.

Re:An Honest Review of Gatsby by zeeg on Sunday October 04, 2020 @02:51AM (#24676994)
That only helps when it’s coupled to the page. Doesn’t make a ton of sense in our use case as it’s just an arbitrary component. It would have to support queries based on component props, but that’s even more complexity in an existing nightmare.