Skip to content

πŸ› Bug Report: Infinite Render Loop in FlashList v2 (setRenderId)Β #1773

@Prajwaltechversant

Description

@Prajwaltechversant

We encountered a crash in FlashList v2 (flashlist@2.x.x) that causes a maximum update depth exceeded error. This issue does not occur in FlashList v1, making it a regression.

error : "Render Error
Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate."

βœ… Expected Behavior

FlashList should avoid triggering an infinite re-render loop when modifying layout or handling orientation changes.

Image

πŸ”„ Actual Behavior
FlashList v2 causes setRenderId to continuously update, triggering an infinite loop and crashing the app.

πŸ”™ Regression
βœ… Yes β€” this issue does not happen in v1, so it is a regression in v2.

✍️ Additional Notes
We tried using extraData and forcing keys to re-render, but it did not prevent the crash.

This may be linked to how modifyChildrenLayout() internally triggers updates.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingv2.0

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions