-
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
Multiple queries under a single root query not passing all data to props #1459
Comments
To solve this, I have taken to creating a JSON object which I import into my layout component. |
This should work. Does the query work in graphiql? |
Wait layout? Graphql queries aren't yet supported in layout queries. |
Yes the query works in graphiql. I found an issue relating to queries in layout, so I tried a dual query in my article template with a view of passing the data up to my layout component. I don't think that changing queries is triggering a cache bust, as seen in other scenarios. I understand now that this would be too much of an overhead as it would attach the |
This is my query in
Article.jsx
which is a template componentI only get
markdownRemark
inthis.props.data
and notallMarkdownRemark
Am I missing something?
I there an easier way to get what I am after in my
Layout.jsx
?The text was updated successfully, but these errors were encountered: