Skip to content

[Question] why rx-angular/state throw error "wrong params passed to select" when use cloneDeep function of lodash to clone a complicated object #1701

Open
@xiongxiong113

Description

@xiongxiong113

Description

I encounter a very strange issue:
When I update rx-angular/state to version 16.3.0, I use lodash( version 4.17.21) cloneDeep function to clone a complicated object, The structure of this object is roughly as follows:
image

Among them, PersonComponent is a relatively complex component, and each item in ele is based on ref and portal of different components.

Then, we use cloneDeep function to clone this object, sometimes we will get the error message like this:
image
image

It is not 100% reproducible, sometimes the clone is successful.
But when I drop the version back to 1.7.0, cloneDeep function succeeds every time without throwing an error.

Environment

Node: 18.18.0
OS: win x64

Angular: 16.2.0

Package Version

@rx-angular/state ~16.3.0
lodash ^4.17.21
rxjs ~7.8.0
typescript 5.1.3

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