getDefaultMiddleware Redux Toolkit

const store = configureStore({
  reducer: rootReducer,
  middleware: (getDefaultMiddleware) => getDefaultMiddleware().concat(logger),
})
Concerned Curlew