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

Non-react statics won't run #8

Open
muhaimincs opened this issue Oct 8, 2018 · 2 comments
Open

Non-react statics won't run #8

muhaimincs opened this issue Oct 8, 2018 · 2 comments

Comments

@muhaimincs
Copy link

I use Nextjs to load the data (getInitialProps) in the child component but apparently it won't run

@dogada
Copy link
Owner

dogada commented Oct 8, 2018

I use Nextjs to load the data (getInitialProps) in the child component and it runs. Create the public repo that demonstrates your problem.

@muhaimincs
Copy link
Author

from the example in nextjs repo, I slightly modified to

import hoistNonReactStatics from 'hoist-non-react-statics';
...
const reduxPage = comp =>
  hoistNonReactStatics(withRedux(initStore)(comp), comp);

but I do this on _app.js file. what do you think?

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

2 participants