Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
zalmoxisus committed Aug 1, 2016
1 parent 699c175 commit b0179d6
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 14 deletions.
4 changes: 2 additions & 2 deletions examples/counter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"react": "^0.14.0",
"react-dom": "^0.14.0",
"react-redux": "^4.0.0",
"redux": "^3.0.0",
"redux": "^3.5.2",
"redux-thunk": "^0.1.0"
},
"devDependencies": {
Expand All @@ -39,7 +39,7 @@
"react-addons-test-utils": "^0.14.0",
"react-transform-hmr": "^1.0.0",
"redux-immutable-state-invariant": "^1.1.1",
"webpack": "^1.9.11",
"webpack": "^1.13.1",
"webpack-dev-middleware": "^1.2.0",
"webpack-hot-middleware": "^2.2.0"
}
Expand Down
7 changes: 3 additions & 4 deletions examples/counter/store/configureStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ import devTools from 'remote-redux-devtools';
import reducer from '../reducers';

export default function configureStore(initialState) {
const finalCreateStore = compose(

const store = createStore(reducer, initialState, compose(
applyMiddleware(invariant(), thunk),
devTools({ realtime: true })
)(createStore);

const store = finalCreateStore(reducer, initialState);
));

if (module.hot) {
// Enable Webpack hot module replacement for reducers
Expand Down
4 changes: 2 additions & 2 deletions examples/todomvc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"react": "^0.14.0",
"react-dom": "^0.14.0",
"react-redux": "^4.0.0",
"redux": "^3.0.0"
"redux": "^3.5.2"
},
"devDependencies": {
"babel-core": "^6.3.15",
Expand All @@ -41,7 +41,7 @@
"react-transform-hmr": "^1.0.0",
"style-loader": "^0.12.3",
"todomvc-app-css": "^2.0.1",
"webpack": "^1.9.11",
"webpack": "^1.13.1",
"webpack-dev-middleware": "^1.2.0",
"webpack-hot-middleware": "^2.2.0"
}
Expand Down
4 changes: 3 additions & 1 deletion examples/todomvc/store/configureStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import devTools from 'remote-redux-devtools';
import rootReducer from '../reducers';

export default function configureStore(initialState) {
const store = devTools({ realtime: true })(createStore)(rootReducer, initialState);
const store = createStore(rootReducer, initialState, devTools({
realtime: true
}));

if (module.hot) {
// Enable Webpack hot module replacement for reducers
Expand Down
2 changes: 1 addition & 1 deletion examples/toggle-monitoring/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"react": "^0.14.0",
"react-dom": "^0.14.0",
"react-redux": "^4.0.0",
"redux": "^3.0.0",
"redux": "^3.5.2",
"redux-thunk": "^0.1.0"
},
"devDependencies": {
Expand Down
9 changes: 5 additions & 4 deletions examples/toggle-monitoring/store/configureStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@ import reducer from '../reducers';
import { START_MONITORING, STOP_MONITORING, SEND_TO_MONITOR } from '../actions/monitoring';

export default function configureStore(initialState) {
const finalCreateStore = compose(
const enhancer = compose(
applyMiddleware(invariant(), thunk),
devTools({
realtime: false,
startOn: START_MONITORING, stopOn: STOP_MONITORING,
sendOn: SEND_TO_MONITOR
sendOn: SEND_TO_MONITOR, sendOnError: 1,
maxAge: 30
})
)(createStore);
);

const store = finalCreateStore(reducer, initialState);
const store = createStore(reducer, initialState, enhancer);

if (module.hot) {
// Enable Webpack hot module replacement for reducers
Expand Down

0 comments on commit b0179d6

Please sign in to comment.