Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Remove item from list cause re-render with wrong list #809

Closed
shiralotanCodeocean opened this issue Dec 20, 2022 · 1 comment · Fixed by #840
Closed

[BUG]: Remove item from list cause re-render with wrong list #809

shiralotanCodeocean opened this issue Dec 20, 2022 · 1 comment · Fixed by #840
Labels
bug Something isn't working released

Comments

@shiralotanCodeocean
Copy link

shiralotanCodeocean commented Dec 20, 2022

Describe the bug
Remove an item from a list causing re-render twice. First time with new list length but not necessarily with the right items, second render will happened with the right items and the right length

Reproduction
Here is a Codesand: https://codesandbox.io/s/sandpack-project-forked-ogddd4?file=/App.js:409-440

To Reproduce
Steps to reproduce the behavior:

  1. Remove item from the middle of the list
  2. Check console.log print the rendered lists. first print list wont contain the right items, second print will contain the right ones

Expected behavior
After remove item should render the updated list

Screenshots
If applicable, add screenshots to help explain your problem.

https://drive.google.com/file/d/1Xz5FrU5rsWsjYZbUaU2U1uWfrkuk47VS/view

@github-actions
Copy link

github-actions bot commented Feb 2, 2023

🎉 This issue has been resolved in version 4.0.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant