How to configuring redux saga with redux store, i've tried this but i get this error which along top "
import React from "react" import { Provider } from "react-redux"
import { createStore as reduxCreateStore, applyMiddleware } from "redux"
import createSagaMiddleware from "redux-saga"
import "regenerator-runtime/runtime"
import rootReducer from "./reducers"
import sagas from "./sagas"
const sagaMiddleware = createSagaMiddleware()
const createStore = () => reduxCreateStore(
rootReducer,
applyMiddleware(sagaMiddleware),
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__() )
sagaMiddleware.run(sagas);
export default ({ element }) => ( <Provider store={createStore()}>{element}</Provider> )
question from:https://stackoverflow.com/questions/65845984/error-before-running-a-saga-you-must-mount-the-saga-middleware-on-the-store