Skip to content

Commit

Permalink
Fix for creating a valid store
Browse files Browse the repository at this point in the history
Addresses KELiON#6
  • Loading branch information
adampash authored May 9, 2017
1 parent 8411e36 commit ef37d59
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ const loadStore = () => {
});
}

const storeCreator = applyMiddleware(asyncInitialState.middleware(loadStore));
const store = storeCreator(reducer);
const store = createStore(
reducer,
compose(applyMiddleware(asyncInitialState.middleware(loadStore)))
);
```

### Partial replace
Expand Down

0 comments on commit ef37d59

Please sign in to comment.