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

fix: skip recalc if data changes before totalCount #840

Merged
merged 2 commits into from Feb 2, 2023

Conversation

mihkeleidast
Copy link
Contributor

@mihkeleidast mihkeleidast commented Feb 1, 2023

Fixes #809. Skipping the recalc if totalCount is not in sync with data.length seems to fix the issue, but I'm not entirely sure if there is maybe some better way of ensuring that the updates would be batched?

@petyosi petyosi merged commit 2282119 into petyosi:master Feb 2, 2023
@petyosi
Copy link
Owner

petyosi commented Feb 2, 2023

That's correct. The bogus emits at certain places in the graph this is the biggest shortcoming of the reactive state management system in use. I touched up the naming a bit to make it in sync with the other flag in there.

@github-actions
Copy link

github-actions bot commented Feb 2, 2023

🎉 This PR is included 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: Remove item from list cause re-render with wrong list
2 participants