Redux Toolkit's default serializable check, plus enum instances: pass it as
getDefaultMiddleware({ serializableCheck: { isSerializable } }). Enums serialize to their
raw value; anything that rehydrates the store (redux-persist, a DevTools import) gets that
string back, not the instance, so map again after rehydrating.
Redux Toolkit's default serializable check, plus enum instances: pass it as
getDefaultMiddleware({ serializableCheck: { isSerializable } }). Enums serialize to their raw value; anything that rehydrates the store (redux-persist, a DevTools import) gets that string back, not the instance, so map again after rehydrating.