Skip to content

Commit

Permalink
Update StaticQuery documentation
Browse files Browse the repository at this point in the history
To explicitly make it clear that StaticQuery should NOT be used on page components and doing so will result in a Loading (StaticQuery) message showing up on the page.
  • Loading branch information
iamhitarth committed Jul 14, 2018
1 parent 57301e8 commit bfaa261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/static-query.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Querying data in non-page components using StaticQuery"
---

Gatsby v2 introduces `StaticQuery`, a new API that allows non-page components to retrieve data via GraphQL query.
Gatsby v2 introduces `StaticQuery`, a new API that allows **non-page components** to retrieve data via GraphQL query. Using this on page components will result in the message `Loading (StaticQuery)` showing up on your pages.

## Basic example

Expand Down

0 comments on commit bfaa261

Please sign in to comment.