You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I see your point... if we serialize before going to js then CustomerConverters will run. I am in the middle of updating everything to dotnet 8 now but once that is complete I or an associate can take a look at this.
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.
The text was updated successfully, but these errors were encountered: