react-router-redux-saga-model
Advanced tools
Comparing version 0.0.48 to 0.0.481
@@ -11,3 +11,3 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
import { Provider } from "react-redux"; | ||
import { sagaModelManagerFactory } from "redux-saga-model"; | ||
import { SagaModelManager } from "redux-saga-model"; | ||
import { ConnectedRouter, routerMiddleware, routerReducer as routing } from "react-router-redux"; | ||
@@ -79,7 +79,7 @@ import createBrowserHistory from "history/createBrowserHistory"; | ||
var initialModels = models; | ||
var modelManager = sagaModelManagerFactory({ initialState: initialState, initialReducer: initialReducer, initialMiddleware: initialMiddleware, initialModels: initialModels, history: history }); | ||
var modelManager = new SagaModelManager({ initialState: initialState, initialReducer: initialReducer, initialMiddleware: initialMiddleware, initialModels: initialModels, history: history }); | ||
return React.createElement( | ||
Provider, | ||
{ store: modelManager.getStore() }, | ||
{ store: modelManager.store() }, | ||
React.createElement(BindRouter, { children: children, history: history, sagaModel: modelManager }) | ||
@@ -86,0 +86,0 @@ ); |
@@ -104,7 +104,7 @@ "use strict"; | ||
var initialModels = models; | ||
var modelManager = (0, _reduxSagaModel.sagaModelManagerFactory)({ initialState: initialState, initialReducer: initialReducer, initialMiddleware: initialMiddleware, initialModels: initialModels, history: history }); | ||
var modelManager = new _reduxSagaModel.SagaModelManager({ initialState: initialState, initialReducer: initialReducer, initialMiddleware: initialMiddleware, initialModels: initialModels, history: history }); | ||
return _react2.default.createElement( | ||
_reactRedux.Provider, | ||
{ store: modelManager.getStore() }, | ||
{ store: modelManager.store() }, | ||
_react2.default.createElement(BindRouter, { children: children, history: history, sagaModel: modelManager }) | ||
@@ -111,0 +111,0 @@ ); |
{ | ||
"name": "react-router-redux-saga-model", | ||
"version": "0.0.48", | ||
"version": "0.0.481", | ||
"main": "lib/index.js", | ||
@@ -15,3 +15,3 @@ "author": "tangzixiang <tomson_tang@yeah.net>", | ||
"redux": "^3.7.2", | ||
"redux-saga-model": "^0.0.94" | ||
"redux-saga-model": "^0.0.941" | ||
}, | ||
@@ -18,0 +18,0 @@ "scripts": { |
import React from "react"; | ||
import {Provider} from "react-redux"; | ||
import {sagaModelManagerFactory} from "redux-saga-model"; | ||
import {SagaModelManager} from "redux-saga-model"; | ||
import {ConnectedRouter, routerMiddleware, routerReducer as routing} from "react-router-redux"; | ||
@@ -66,6 +66,6 @@ import createBrowserHistory from "history/createBrowserHistory"; | ||
const initialModels = models; | ||
const modelManager = sagaModelManagerFactory({initialState, initialReducer, initialMiddleware, initialModels,history}); | ||
const modelManager = new SagaModelManager({initialState, initialReducer, initialMiddleware, initialModels,history}); | ||
return ( | ||
<Provider store={modelManager.getStore()}> | ||
<Provider store={modelManager.store()}> | ||
<BindRouter children={children} history={history} sagaModel={modelManager}/> | ||
@@ -72,0 +72,0 @@ </Provider> |
Sorry, the diff of this file is not supported yet
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
62985
+ Addedredux-saga-model@0.0.941(transitive)
- Removedredux-saga-model@0.0.94(transitive)
Updatedredux-saga-model@^0.0.941