1import { createStore, applyMiddleware } from 'redux';
2import { countReducer } from './counter/reducer';
3import createSagaMiddleware from 'redux-saga';
4import "regenerator-runtime/runtime";
5
6function* exampleSaga() {
7 console.log("Example saga reached");
8}
9
10const sagaMiddleware = createSagaMiddleware();
11
12export const store = createStore(countReducer, applyMiddleware(sagaMiddleware));
13
14sagaMiddleware.run(exampleSaga);
15
1import { createStore, applyMiddleware } from 'redux';
2import createSagaMiddleware from 'redux-saga';
3import "regenerator-runtime/runtime";
4...
5