-
Notifications
You must be signed in to change notification settings - Fork 55
Description
First - Kudos for the developer and contributors. I dove into the code to help more, but it entered typescript, and I was somewhat out of my depth.
As far as I can make it, Hydrating and dehydrating relies on the JsonSerializerOptions provided. However when dispatched to ReduxDevTools it does not use these options.
Example: Serializing List only shows the properties of the interface, while my CustomConvertor in the JsonSerializerOptions convert it to the actual type, and will show additional properties, not present on the IAccount interface, or better said, tests for interfaces derived from IAccount and serialize the additional properties.
I am able to fix this - with a little trickery - by adding additional lists that transform the base IAccount list to their implemented types.
Now this can be a design choice, for performance; Fluxor has chosen to use the options for Devtools.
Might be resolved by not dispatching the state as an object, but as a json string, before entering typescript.