Skip to content

Commit 39ceb77

Browse files
committed
Remove thunk from store
1 parent d3ad776 commit 39ceb77

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

common/js/store/index.dev.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
import { compose, createStore, applyMiddleware } from 'redux';
2-
import thunk from 'redux-thunk';
32
import rootReducer from 'reducers';
43
import DevTools from 'containers/DevTools';
54

65
export default function configureStore(initialState) {
76
/* Middleware
8-
* Configure this array with the middleware that you want included. thunk
9-
* is included by default, and react-router-redux's syncHistory is also
10-
* applied if an `options.history` object was passed to configureStore.
7+
* Configure this array with the middleware that you want included
118
*/
12-
let middleware = [thunk];
9+
let middleware = [];
1310

1411
// Add universal enhancers here
1512
let enhancers = [

common/js/store/index.prod.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
import { compose, createStore, applyMiddleware } from 'redux';
2-
import thunk from 'redux-thunk';
32
import rootReducer from 'reducers';
43

54
export default function configureStore(initialState) {
65
/* Middleware
7-
* Configure this array with the middleware that you want included. thunk
8-
* is included by default, and react-router-redux's syncHistory is also
9-
* applied if an `options.history` object was passed to configureStore.
6+
* Configure this array with the middleware that you want included.
107
*/
11-
let middleware = [thunk];
8+
let middleware = [];
129

1310
// Add universal enhancers here
1411
let enhancers = [];

0 commit comments

Comments
 (0)