-
Notifications
You must be signed in to change notification settings - Fork 1
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
Investigate if we need to re-forward properties #90
Comments
@nomego I tried disabling the prop forwarding, by removing those lines in _realignElements, but (aside from causing errors in the tests) the multiple requests for the same id appear to continue to be happening. |
🎉 This issue has been resolved in version 3.0.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
When implementing "realign" for scenarios where items disappear from the item list, but other items that are rendered should stay intact (
cosmoz-data-nav/cosmoz-data-nav.js
Line 598 in 82f234f
cosmoz-data-nav/cosmoz-data-nav.js
Line 619 in 82f234f
This causes us to actually re-stamp/re-eval the same instance, which in turn, in some cases, causes the views to re-request information from BE unnecessarily.
Can we safely drop this property forwarding for existing, rendered elements or why is it there in the first place?
This can be tested in Cosmoz FE view "Purchase -> Orders -> Orders rows with quantity differences" -> Queue -> action "Approve order row".
You will notice that history and suggestions are called twice, even though we only request information for one new row.
The text was updated successfully, but these errors were encountered: