-
Notifications
You must be signed in to change notification settings - Fork 2
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
Async Props Transfer #2
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, Thanks for a nice and simple example for dealing with authentication. I have used your scaffold in my project but I found an issue while transferring async props from WrapComponent to the Wrapped Component.
e.g.
When I wrap the above component with your SecuredPage/Page component, the seed prop is lost when I console log it or try to use it in my wrapped component. I have fixed the issue by using
loadGetInitialProps
provided bynext/dist/lib/utils
instead ofreturn Page.getInitialProps ? Page.getInitialProps(context) : {};
Usereturn await loadGetInitialProps(Page, context);
The text was updated successfully, but these errors were encountered: