Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{'__$id': 2, val: 122},
{'__$id': 3, val: 123}
]
}
}
}
const photosConfig = {
resources: {
Photos: {
controller: 'photos'
}
}
}
const resourcesConfig = combineConfigs(
defaultConfig,
commentsConfig,
photosConfig
)
const reduxRailsConfig = combineConfigs(
defaultConfig,
apiConfig,
commentsConfig,
photosConfig
)
// redux store
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const siteApp = window.siteApp = createStore(
const photosConfig = {
resources: {
Photos: {
controller: 'photos'
}
}
}
const resourcesConfig = combineConfigs(
defaultConfig,
commentsConfig,
photosConfig
)
const reduxRailsConfig = combineConfigs(
defaultConfig,
apiConfig,
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)
}),
{},