next-superjson
next-superjson copied to clipboard
`getLayout` does not work with `getStaticProps`
When following this guide and specifying a getStaticProps
function in my page that uses a layout, the page is rendered, but is not wrapped in the layout.
After removing the getStaticProps
function or after removing withSuperjson
from my Next.js configuration, the issue goes away, and both the page and layout are rendered.
I'm using Next.js 12.1.4 and next-superjson 0.0.2
I can confirm the exact same issue
can confirm. It also causes a full reload.
https://github.com/blitz-js/next-superjson-plugin/issues/18