Skip to content

Conversation

ReshmaRamaiah10
Copy link

Issue: An infinite re-render loop was caused when a key was deleted because addedListItemKeys became an empty array [].

Fix: Compare the new filtered keys with the current addedListItemKeys by checking both length and content equality. Update addedListItemKeys only if they are different.

@ReshmaRamaiah10 ReshmaRamaiah10 requested a review from bprize15 July 28, 2025 19:15
@bprize15
Copy link

bprize15 commented Jul 29, 2025

Issue: An infinite re-render loop was caused when a key was deleted because addedListItemKeys became an empty array [].

Fix: Compare the new filtered keys with the current addedListItemKeys by checking both length and content equality. Update addedListItemKeys only if they are different.

Could you check out a new branch describing the name of the change. Something like fix/infinite-rerender. Makes it easier since I already have a local copy of the rc branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants