Skip to content

Commit

Permalink
Undo reversion concerning store enhancers
Browse files Browse the repository at this point in the history
  • Loading branch information
wacii authored Oct 5, 2017
1 parent d85dac8 commit bc2cf5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export const offline = (userConfig: $Shape<Config> = {}) => (createStore: any) =

// create autoRehydrate enhancer if required
const offlineEnhancer = config.persist && config.rehydrate && config.persistAutoRehydrate
? compose(offlineMiddleware, enhancer, config.persistAutoRehydrate())
: compose(offlineMiddleware, enhancer);
? compose(offlineMiddleware, config.persistAutoRehydrate())
: offlineMiddleware;

// create store
const store = offlineEnhancer(createStore)(offlineReducer, preloadedState, enhancer);
Expand Down

0 comments on commit bc2cf5a

Please sign in to comment.