Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getLayout does not work with getStaticProps #4

Open
sanny-io opened this issue Apr 11, 2022 · 3 comments
Open

getLayout does not work with getStaticProps #4

sanny-io opened this issue Apr 11, 2022 · 3 comments

Comments

@sanny-io
Copy link

sanny-io commented Apr 11, 2022

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

@Haberkamp
Copy link

I can confirm the exact same issue

@merthanmerter
Copy link

merthanmerter commented Aug 27, 2022

can confirm. It also causes a full reload.

@merthanmerter
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants