Browse Source

Simplify.

Herby Vojčík 6 năm trước cách đây
mục cha
commit
99c9225d01
1 tập tin đã thay đổi với 2 bổ sung4 xóa
  1. 2 4
      index.js

+ 2 - 4
index.js

@@ -22,13 +22,11 @@ export default () => {
         return this;
     }
 
-    function create (reset = false) {
-        const store = createStore(
+    function create () {
+        return createStore(
             composeReducers(...reducers),
             applyMiddleware(...middlewares, effectsMiddleware(effects))
         );
-
-        return store;
     }
 
     return {withReducers, withMiddlewares, withEffects, create};