bjoluc / next-redux-cookie-wrapper

Sync a subset of your Redux state with cookies in Next.js :cookie: :sparkles:
MIT License
114 stars 4 forks source link

Next 9.5 Upgrade #9

Closed mshez closed 3 years ago

mshez commented 4 years ago

Next-Redux has been changed. SSG and SSR methods compatibility.

bjoluc commented 4 years ago

Thanks for your interest in this lib. Could you elaborate a little?

mshez commented 4 years ago

Hi, So Next-Redux-Wrapper has been change since version 9.4 we now have SSG and SSR and getInitialProps has been dropped. Next redux wrapper now will have wrapper rather than HOC (which is used in next-redux-cookie-wrapper).

I like this library alot since its hassle free. with this we will have getStaticProps getServerSideProps. Any idea how to achieve this with current implementation?

bjoluc commented 4 years ago

I see, thanks! My last statement regarding this was in this issue, but I'm happy to have a look again in a free moment.

Any idea how to achieve this with current implementation?

I will need to look into the new next-redux-wrapper implementation for this. I'm not sure how to maintain the "hassle-free" character of next-redux-cookie-wrapper with the new methods. What do you think about the solution proposed in the comment linked above?

bjoluc commented 3 years ago

Closing this in favor of #13 – stay tuned!

bjoluc commented 3 years ago

@mshez Hi there, just a quick note here that I released v2 which supports the new methods!