Don't receive a props returned by getInitialProps
ivanyufen opened this issue · 3 comments
Hi, i just updated my next-redux-wrapper and change all my old "getInitialProps = (ctx)" to "getInitialProps = wrapper.getInitialPageProps(store => (ctx)"
However, it seems that i didn't get the props returned by the getInitialProps to use on my component client-side. I try to hardcode the returned value and they just didn't appear on my UI component. is there something i do wrong?
Closing, no sandbox. Please provide codesandbox with reproducible scenario.
Closing, no sandbox. Please provide codesandbox with reproducible scenario.
ok, but a simple question: if i return some value in getInitialProps = wrapper.getInitialPageProps(store => (ctx) => ({ test: "just testing" }) )
i should be able to receive that "test" value props on the component right?
You should return ‘{props:{…}}’