You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran in to the same issue and adding ...props did not do the trick as suggested by @KyleAMathews. I'm not too familiar with the code base, but looking at the surrounding code it seems that layoutProps is not set for 404 pages, is it not rendered as a child of a layout?
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub issues, we have to clean some of the old issues as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Gatsby version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
kakadiadarpan
added
type: bug
An issue or pull request relating to a bug in Gatsby
stale?
Issue that may be closed soon due to the original author not responding any more.
labels
Sep 27, 2018
This issue is being closed because there hasn't been any activity for at least 30 days. Feel free to open a new one if you still experience this problem 👍
Description
I have a graphql query in my layout, which is passing down data to all pages. The 404 page receives this data in development, but not in production.
Environment
Gatsby version: 1.9.52
Node.js version: 8.9.1
Operating System: Mac OS 10.11.6
Actual result
404 page not receiving layout graphql query data
Expected behavior
404 page should receive layout graphql query data as per other pages
Steps to reproduce
1. Add graphql query to
src/layouts/index.js
2. Add
src/pages/404.js
component using data from this query3. Run
gatsby build
followed bygatsby serve
and navigate to non-existent pageThe text was updated successfully, but these errors were encountered: