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