Open milosCvetkovicDev opened 4 years ago
Hey. Take a look at my example of using NEXT with dynamic modules. https://github.com/fostyfost/next-with-redux-dynamic-modules
@fostyfost can you please explain what are you doing here?
As I checked in your code, you are not using createStore
exported from redux-dynamic-modules
.
@fostyfost can you please explain what are you doing here? As I checked in your code, you are not using
createStore
exported fromredux-dynamic-modules
.
Hello, @kritika-agrawal-dunzo
Quite right, I don't use createStore
by default. I have implemented my own based on createStore
fromredux-dynamic-modules
. All this is needed in order for the rest of the redux-dynamic-modules
library to work properly in server-rendered conditions (Next.js SSR).
@fostyfost Thanks for the response :)
One more doubt, is there any particular reason for not using next-redux-wrapper
?
@kritika-agrawal-dunzo
Unfortunately, I don't remember all the problems I faced when I tried to use the next-redux-wrapper
. You can try using this library. It definitely does not suit me, for example, because the store was created twice on the server.
Hello everyone! I've updated my example to work with Next.js. It is now a complete library. You can try it in your Next.js projects. https://github.com/fostyfost/redux-eggs
Hi there,
Can I use this awesome package with NextJs and if i do can you share some exam?
Thanks! :)