Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
commentsConfig,
photosConfig
)
// redux store
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const siteApp = window.siteApp = createStore(
combineReducers({
counter: counterReducer,
models: apiReducer(apiConfig),
resources: apiReducer(resourcesConfig)
}),
{},
composeEnhancers(
applyMiddleware(middleWare(reduxRailsConfig)),
)
);
window.setTimeout(() => {
console.log('starting state', siteApp.getState())
siteApp.dispatch({
type: 'increment'
})
siteApp.dispatch({
type: 'increment'
})
// siteApp.dispatch({
// type: 'Posts.SHOW',
// data: {id: 3}
// })