Replies: 1 comment 1 reply
-
Could you share any more code that helps to demonstrate the issue? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
i am using getInitialProps in pages for initial data populating. So anyone go website directly or press f5 getInitialProps don't work. Only working when next/link or next/router navigate.
How can i fix this ?
PostDetail.getInitialProps = async (ctx) => { await ctx.store.execSagaTasks(ctx.isServer, (dispatch) => { const { post } = ctx.query; dispatch( getPostDetailRequest({ slug: post, loaderStart: true, token: parseCookies(ctx).token, isServer: true }) ); }); return {}; };
Beta Was this translation helpful? Give feedback.
All reactions