-
Notifications
You must be signed in to change notification settings - Fork 16
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
Multiple recomputes of a getList derived property #449
Comments
@ivospinheiro The issue here is that the If I change
The tests pass for me. This sub-section explains how You'll find that content here: https://canjs.com/doc/can-rest-model.html#Definedatatypes |
Some notes on why it happens without identity:
One solution might be to create a "smart deep diff". A smart deep diff would, instead of default to |
Thanks Justin by the clarification, but probably in certain cases we are not able to define the identity property.
I'm not sure if we could have an identity in this case, eventually |
Yeah, we can create something to help, but I’m not sure what. By the way, you can overwrite updatedInstance to update differently (such as use assignDeep) |
Derived properties from
can-connect
getList
result are being recomputed for every single result list item when a second call is made.How often can you reproduce it?
Description:
Check the following example with tests describing what was the expected behavior:
https://codepen.io/ivospinheiro-the-reactor/pen/MZXjOw?editors=1010
It seems that in this case the recompute is being triggered due to change on the
length
ontodo
itemsassignedTo
property which in this case has not changed since the result is the same.Environment:
The text was updated successfully, but these errors were encountered: