Тёмный

SerializableStateInvariantMiddleware took xxx ms, which is more than threshold of 64 ms 

GreenPs
Подписаться 2,1 тыс.
Просмотров 15
50% 1

React Redux warning of :
SerializableStateInvariantMiddleware took 150ms, which is more than the warning threshold of 64ms.
Add a middleWare:
export default store=configureStore({
reducer:{
SOLAR: solarSlice,
},
middleware: (getDefaultMiddleware) =(arrow right) getDefaultMiddleware({
immutableCheck: { warnAfter: 128 },
//serializableCheck: { warnAfter: 256 },
//immutableCheck: false,
serializableCheck: false,
})
});
Direction:
Copy & paste the middleWare code let after the reducer, & edit the settings as you like.

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии    
Далее
Heaps and Heap Sort
6:06
Просмотров 562 тыс.
ChatBot LLM: "I know kungfu."
1:58
Просмотров 40
Coding Was HARD Until I Learned These 5 Things...
8:34
Node.js is a serious thing now… (2023)
8:18
Просмотров 650 тыс.
The cloud is over-engineered and overpriced (no music)
14:39
State Managers Are Making Your Code Worse In React
13:33