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.

π 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.
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.
π 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.