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 would like to pass props from layout to pages. But I could not find any documentation. Does Gatsby support this, and if not, would you consider a PR?
I think this is reasonable if a user wants a state to be fetched and shared in all pages (such as loggedIn). Wrapping each page with HOC is a solution but we can't use the state in something outside a page but inside the layout (e.g. <Header>).
The text was updated successfully, but these errors were encountered:
I would like to pass props from layout to pages. But I could not find any documentation. Does Gatsby support this, and if not, would you consider a PR?
I think this is reasonable if a user wants a state to be fetched and shared in all pages (such as
loggedIn
). Wrapping each page with HOC is a solution but we can't use the state in something outside a page but inside the layout (e.g.<Header>
).The text was updated successfully, but these errors were encountered: