Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default () => {
Reactotron.createSagaMonitor()
const store = createStore(
rootReducer,
compose(
middleware,
Reactotron.createEnhancer()
)
)
// const store = (Reactotron as any).createStore(rootReducer, compose(middleware))
return store
}
export default () => {
const sagaMiddleware = createSagaMiddleware({
sagaMonitor: Reactotron.createSagaMonitor()
})
const middleware = applyMiddleware(logger, sagaMiddleware)
const store = createStore(rootReducer, compose(middleware, Reactotron.createEnhancer()))
sagaMiddleware.run(rootSaga)
return store
}