These are chat archives for canjs/canjs

7th
Jan 2019
Ivo Pinheiro
@ivospinheiro
Jan 07 11:51
Hi Guys!
Is there a way to know what has triggered a derived property recompute?
Ivo Pinheiro
@ivospinheiro
Jan 07 12:39
Please forget my last comment I took a look to the Debugging guide on CanJS page
I think I've found an issue on can-connect could you please guys take a look on the following example?
https://codepen.io/ivospinheiro-the-reactor/pen/REyeOW?editors=0012
Is it supposed the change listener on _serialize of todos to be called for every single item of todos and in this case it seems to be triggered due to a change on the length of the History.List that in this case it is the same
Justin Meyer
@justinbmeyer
Jan 07 13:22
@ivospinheiro what do you mean by “in this case it is the same”. What is the issue?
It’s that _serialize is re-running even though the data is the same
Ivo Pinheiro
@ivospinheiro
Jan 07 13:33
Yes and in this case the history length is the same
And it is forcing the recompute three times
Ivo Pinheiro
@ivospinheiro
Jan 07 14:03
I think that it doesn't make sense since the value as not changed
Ivo Pinheiro
@ivospinheiro
Jan 07 14:23
And in my case it is creating performance issues
Kevin Phillips
@phillipskevin
Jan 07 15:27
@frank-dspeed I think that s just a saucelabs issue. I restarted the job.
Frank Lemanschik
@frank-dspeed
Jan 07 15:31
thanks
Ivo Pinheiro
@ivospinheiro
Jan 07 17:56

I think I've found an issue on can-connect could you please guys take a look on the following example?
https://codepen.io/ivospinheiro-the-reactor/pen/REyeOW?editors=0012
Is it supposed the change listener on _serialize of todos to be called for every single item of todos and in this case it seems to be triggered due to a change on the length of the History.List that in this case it is the same

@justinbmeyer is this really an issue? Should I open an issue on can-connect project?

Justin Meyer
@justinbmeyer
Jan 07 20:10
I think it's an issue
@ivospinheiro
I probably won't have time to look into it until tonight
so any issue / test / etc you can add will help a lot ... thanks!