Skip to content

Dispatching updates to ReduxDevTools relies on  #363

@vincentnl

Description

@vincentnl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions