Skip to content
Discussion options

You must be logged in to vote

I can't believe that the fix was as simple as:

// Wraps every page in a component
- export const wrapRootElement = ({ element, props }) => {
+ export const wrapPageElement = ({ element, props }) => {
  return <Layout {...props}>{element}</Layout>;
};

Another symptom of skimming the docs, instead of actually reading it. I am so dumb 🤦🏽 https://www.gatsbyjs.com/docs/reference/config-files/gatsby-browser/#wrapPageElement

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by PsyGik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant