You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 12, 2020. It is now read-only.
I think at this point it does not make sense to continue supporting this repository. next.js has grown massively and other packages with bedder support have covered this functionality (ssr with redux-saga) already.
Setting up Redux for static apps is rather simple: a single Redux store has to be created that is provided to all pages.
When Next.js static site generator or server side rendering is involved, however, things start to get complicated as another store instance is needed on the server to render Redux-connected components.
Furthermore, access to the Redux Store may also be needed during a page's getInitialProps. This is where next-redux-wrapper comes in handy: It automatically creates the store instances for you and makes sure they all have the same state.
Moreover it allows to properly handle complex cases like App.getInitialProps (when using pages/_app) together with getStaticProps or getServerSideProps at individual page level.
Library provides uniform interface no matter in which Next.js lifecycle method you would like to use the Store.
if we take a look at the next.js "with-redux-saga" example, it doesn't even include next-redux-saga anymore. it is done via next-redux-wrapper and actually a duplicate of the example "with-redux-wrapper". package.json:
hi @bmealhouse
I think at this point it does not make sense to continue supporting this repository.
next.js
has grown massively and other packages with bedder support have covered this functionality (ssr withredux-saga
) already.from the
README.md
ofnext redux-wrapper
.if we take a look at the
next.js
"with-redux-saga" example, it doesn't even includenext-redux-saga
anymore. it is done vianext-redux-wrapper
and actually a duplicate of the example "with-redux-wrapper".package.json
:my suggestions is as following: I will create one last PR stating out the reason this package was abandoned, next you archive it -> "read only".
The text was updated successfully, but these errors were encountered: