react: ^16.8.2 => 16.8.6
react-dom: ^16.8.2 => 16.8.6
react-static: ^7.0.0 => 7.0.9
react-static-plugin-reach-router: ^7.0.0 => 7.0.8
react-static-plugin-sitemap: ^7.0.0 => 7.0.8
react-static-plugin-source-filesystem: ^7.0.0 => 7.0.8
react-static-plugin-typescript: ^7.0.0 => 7.0.8
react-typography: ^0.16.19 => 0.16.19
npx react-static createyarnstatic.config.json getSiteData: () => ({
title: 'Hello, world',
}),
Document: ({ Html, Head, Body, children, state }) => {
console.log(state.siteData)
return (
<Html lang="en-US">
<Head></Head>
<Body>{children}</Body>
</Html>
)
}
yarn build, siteData is populated and the following is printed:...
{ title: 'Hello, world' }
...
yarn dev, siteData is undefined and nothing is printed.siteData would also be available in dev stage.
Good find. We'll work on an update for this asap.
:+1:
(Off-topic: please note that I couldn't re-open #1144 as you requested due to permissions.)
I need this as well. Any status?
Most helpful comment
Good find. We'll work on an update for this asap.