Skip to content

docs: remove TODOs from Static vs Normal Queries to focus more on internals #19219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Nov 18, 2019

Conversation

gillkyle
Copy link
Contributor

@gillkyle gillkyle commented Nov 1, 2019

Description

This doc had several TODO's hanging around, there was redundant information around the differences in usage between this doc and the using static query components doc, so I removed it from this section and tried to refocus it more on Gatsby internals.

I answered what I felt I could discern from reading code in the query-watcher, query-runner, and query-compilation files, but if someone from the Core team has more context and can help realign something it would be very appreciated 😬

Related Issues

Closes #15157

@gillkyle gillkyle added the type: documentation An issue or pull request for improving or updating Gatsby's documentation label Nov 1, 2019
@gillkyle gillkyle requested a review from a team as a code owner November 1, 2019 21:48
Copy link
Contributor

@muescha muescha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my nitpicks

Copy link
Contributor

@marcysutton marcysutton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great start to this one! I think the best way to move it forward would be to pair with someone on the core team and walk through the code. This PR does remove TODOs which is helpful, but the explanations are still pretty confusing and don't tell much of a story about what's happening in the code. What is the purpose of some of these methods? What would happen if this code didn't exist?

@gillkyle
Copy link
Contributor Author

Just updated the PR to tell more of a story of the code like Marcy suggested, as well as removed a couple lines that me and @sidharthachatterjee didn't think really provide much new context or insight.

Added some more code snippets to showcase the idea of what's changing in your code being built as well.

@gillkyle gillkyle changed the title docs: remove TODOs and focus the doc more on internals docs: remove TODOs from Static vs Normal Queries to focus more on internals Nov 14, 2019
@laurieontech
Copy link
Contributor

I love having an explanation for this! These are really good examples and clarifications. Think this post will have a big impact on removing some of the gatsby magic!

@muescha
Copy link
Contributor

muescha commented Nov 16, 2019

Note: all links in docs for query-runner has changed and now a 404. I created a follow up issue #19557 to decouple it from this PR

@laurieontech
Copy link
Contributor

Looks great @gillkyle 🎉

@laurieontech laurieontech merged commit 20afc1b into master Nov 18, 2019
@delete-merged-branch delete-merged-branch bot deleted the fix-query-doc-todos branch November 18, 2019 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation An issue or pull request for improving or updating Gatsby's documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[docs] Finish Static vs Normal Queries page
4 participants