Skip to content

Table: Duplicate item id causes infinite collection and out of memory crash #8033

Open
@nathanforce

Description

@nathanforce

Provide a general summary of the issue here

After a recent react-aria upgrade we started seeing our Node servers tip over due to running out of memory. We managed to track the cause to be how we were constructing rows in our RAC based Table component.

Specifically, two or more rows sharing a single id when set via props on the Row element is where we saw the problem.

🤔 Expected Behavior?

Maybe we should warn in this case? Or ignore subsequent items with conflicting keys?

😯 Current Behavior

Page/app crashes once the array grows too large.

💁 Possible Solution

No response

🔦 Context

No response

🖥️ Steps to Reproduce

https://codesandbox.io/p/sandbox/winter-moon-szxxyj

Version

[email protected]

What browsers are you seeing the problem on?

Chrome

If other, please specify.

Also in Node during SSR

What operating system are you using?

macos

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions