-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Update StaticQuery documentation #6452
Conversation
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.
Deploy preview for using-drupal ready! Built with commit bfaa261 |
Deploy preview for gatsbygram ready! Built with commit bfaa261 |
Deploy preview for using-drupal ready! Built with commit 089754b |
Deploy preview for gatsbygram ready! Built with commit 089754b |
Deploy preview for gatsbygram ready! Built with commit 136cba4 |
Deploy preview for using-drupal ready! Built with commit 136cba4 |
As far as I know |
yes, StaticQuery should be usable everywhere if it's not there is a bug we need to fix 👍 |
@LekoArts @jquense in my Gatsby site that I migrated to v2 last night, using See issue #6350 for more details. Let me know if there is any additional information I can provide to help. |
It‘s still a bug or a wrong use (two queries in the page component). If the latter you should try it with only one query at a time. |
Thanks @iamhitarth! This sounds like it's a bug and not intended behaviour so I've updated the linked issue #6350 with a demo. I'm going to close this as we should fix the bug instead :) |
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.