This is my store :
import saga from 'redux-saga';
import {all, fork} from 'redux-saga/effects';
import { configureStore, getDefaultMiddleware} from '@reduxjs/toolkit';
import { watchCommonSaga} from './sagas';
import RootReducer from './slices';
function* RootSaga(){
yield all([fork(watchCommonSaga)]);
}
const sagaMiddleware = saga();
const store = configureStore({
reducer: RootReducer,
middleware: [
...getDefaultMiddleware({thunk: false, serializableCheck: false}),
sagaMiddleware
],
devTools: process.env.NODE_ENV !== 'production',
})
sagaMiddleware.run(RootSaga);
export type RootState = ReturnType<typeof store.getState>
export default store;
, The problem is that getDefaultMiddleware is deprecated.:, How i can solve this? I can't find updated documentation.