Skip to content

Instantly share code, notes, and snippets.

@rhuanbarreto
Created January 9, 2019 04:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rhuanbarreto/e16ff956237fb9582314040457419e86 to your computer and use it in GitHub Desktop.
Save rhuanbarreto/e16ff956237fb9582314040457419e86 to your computer and use it in GitHub Desktop.
Configure Redux DevTools with Redux Offline
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