Skip to content

[bug] useFlattenRecords throws "Maximum call stack size exceeded error" #983

@vlats05

Description

@vlats05

I have a virtual table and a record with 50k children rows.
"useFlatterRecords" throws "Maximum call stack size exceeded error" while flattening so large number of records.

Same problem described on stackoverflow:
https://stackoverflow.com/questions/61740599/rangeerror-maximum-call-stack-size-exceeded-with-array-push

How to fix:
Concat two arrays instead of pushing all elements.

Screenshot 2023-04-21 at 14 32 12

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