mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-23 19:39:10 -04:00
feat added custom pages
This commit is contained in:
17
.devcontainer/laradock/react/src/store/index.js
vendored
Normal file
17
.devcontainer/laradock/react/src/store/index.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
import { createStore, applyMiddleware, compose } from "redux";
|
||||
import reducers from "./reducers";
|
||||
import createSagaMiddleware from "redux-saga";
|
||||
import { watchSagas } from "./sagas";
|
||||
const saga = createSagaMiddleware();
|
||||
//redux dev tool
|
||||
const composeEnhancers =
|
||||
typeof window === "object" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
|
||||
? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({})
|
||||
: compose;
|
||||
const enhancer = composeEnhancers(applyMiddleware(saga));
|
||||
|
||||
const store = createStore(reducers, enhancer);
|
||||
|
||||
saga.run(watchSagas);
|
||||
|
||||
export default store;
|
||||
Reference in New Issue
Block a user