Skip to content

Commit

Permalink
chore(docs): Update query-extraction.md to point to TS file instead o…
Browse files Browse the repository at this point in the history
…f old JS (#35067)

Co-authored-by: Josh Johnson <[email protected]>
Co-authored-by: Lennart <[email protected]>
  • Loading branch information
3 people authored Mar 10, 2022
1 parent dfec140 commit 787a85f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/query-extraction.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ digraph {

### Store queries in Redux

Gatsby is now in the [handleQuery](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/query/query-watcher.js#L54) function.
Gatsby is now in the [handleQuery](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/query/query-watcher.ts#L80) function.

If the query is a `StaticQuery`, Gatsby will call the `replaceStaticQuery` action to save it to the `staticQueryComponents` namespace which is a mapping from a component's path to an object that contains the raw GraphQL Query amongst other things. More details can be found in the doc on [Static Queries](/docs/static-vs-normal-queries/). Gatsby also removes a component's `jsonName` from the `components` Redux namespace. See [Page -> Node Dependencies](/docs/page-node-dependencies/).

Expand Down

0 comments on commit 787a85f

Please sign in to comment.