Replies: 5 comments 1 reply
-
There is a case for moving data from page context to a page query. Especially when more pages are added, as with page context "Hot reload is taken off the table and the site needs to be rebuilt for changes to reflect." . I could refactor from page context to page template for Region pages on my stream on Thursday if that would welcomed? |
Beta Was this translation helpful? Give feedback.
-
Personally I like it when I can read the Gatsby files such as exports.onCreateNode = onCreateNode something like might work: exports.onCreateNode = (gatsbyUtils) => {
createRegionNodesFromMarkdown(gatsbyUtils)
createSubRegionNodesFromMakdwon(gatsbyUtils)
// and so forth
} |
Beta Was this translation helpful? Give feedback.
-
Using the filesystem route api makes it, in my opinion. easier to navigate the page structure for new developers. Especially since there is already a lot of hard coded pages, and then you can see them side by side. For instance inside the regions folder, together with |
Beta Was this translation helpful? Give feedback.
-
Wow @raae this is fantastic! I'll definitely be going through your suggestions and making issues / implementing them over time.
YES PLEASE! That'd be super cool. Let me know if you want me or @hola-soy-milk to join, or if you'd like to join us on our OSS Thursdays stream to do this! |
Beta Was this translation helpful? Give feedback.
-
Yay, @raae! Thank you |
Beta Was this translation helpful? Give feedback.
-
Would you like a Gatsby code review? And if so would you like the feedback as issues or here in the discussion?
Beta Was this translation helpful? Give feedback.
All reactions