Created
January 9, 2019 04:13
-
-
Save rhuanbarreto/e16ff956237fb9582314040457419e86 to your computer and use it in GitHub Desktop.
Configure Redux DevTools with Redux Offline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createStore, compose } from "redux"; | |
import rootReducer from "./reducers"; | |
import { offline } from '@redux-offline/redux-offline'; | |
import config from '@redux-offline/redux-offline/lib/config'; | |
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; | |
export default createStore( | |
rootReducer, | |
composeEnhancers( | |
offline(config) | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment