next-redux-saga
Advanced tools
Comparing version 4.0.0 to 4.0.1
{ | ||
"name": "next-redux-saga", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "redux-saga HOC for Next.js", | ||
"repository": "https://github.com/bmealhouse/next-redux-saga.git", | ||
"author": "Brent Mealhouse <bmealhouse@gmail.com>", | ||
"congtributors": [ | ||
"Timon Borter", | ||
"Artem Abzanov", | ||
"Robbin Habermehl" | ||
], | ||
"license": "MIT", | ||
@@ -8,0 +13,0 @@ "main": "dist/next-redux-saga.umd.js", |
@@ -41,11 +41,15 @@ # next-redux-saga | ||
const sagaMiddleware = createSagaMiddleware() | ||
function configureStore(preloadedState) { | ||
/** | ||
* Since Next.js does server-side rendering, you are REQUIRED to pass`preloadedState` | ||
* when creating the store. | ||
* Recreate the stdChannel (saga middleware) with every context. | ||
*/ | ||
const sagaMiddleware = createSagaMiddleware() | ||
/** | ||
* Since Next.js does server-side rendering, you are REQUIRED to pass | ||
* `preloadedState` when creating the store. | ||
*/ | ||
const store = createStore( | ||
@@ -59,5 +63,3 @@ rootReducer, | ||
* next-redux-saga depends on `sagaTask` being attached to the store. | ||
* | ||
* `sagaTask` is used to await the rootSaga task before sending results to the client | ||
* | ||
* It is used to await the rootSaga task before sending results to the client. | ||
*/ | ||
@@ -64,0 +66,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26553
147