未捕获的 RangeError:redux 工具包超出最大调用堆栈大小
2021-10-10
1311
我是新来的 React 开发人员,我收到一条错误消息,该消息未指向我的代码,但指向“redux-toolkit.esm.js:301” `redux-toolkit.esm.js:301
Uncaught RangeError: Maximum call stack size exceeded
at trackProperties (redux-toolkit.esm.js:301)
at trackProperties (redux-toolkit.esm.js:312)`
`redux-toolkit.esm.js:301
Uncaught (in promise) RangeError: Maximum call stack size exceeded
at trackProperties (redux-toolkit.esm.js:301)
at trackProperties (redux-toolkit.esm.js:312)`
当我单击该 redux 工具包时,它会显示此
function trackProperties(isImmutable, ignorePaths, obj, path) {
如果它没有指向我的代码,我该如何修复它?
2个回答
这解决了我的问题,像这样设置中间件
const store = configureStore({
reducer: appReducer,
middleware: (getDefaultMiddleware) =>
getDefaultMiddleware({
thunk: true,
immutableCheck: false,
serializableCheck: false,
}),
});
Breakpoint25
2023-03-17
错误:- 用户 http://localhost:9002/static/js/D:/workspace/clear2-admin/node_modules/@reduxjs/toolkit/src/query/core/buildMiddleware/index.ts RangeError :超出最大调用堆栈大小
#This Works of me
export const store = configureStore({
reducer: rootReducer,
middleware: (getDefaultMiddleware) =>
getDefaultMiddleware({
thunk: true,
immutableCheck: false,
serializableCheck: false,
}).concat(...rootMiddelwares),
})
Satnam 363
2024-04-15