Closed tja4472 closed 7 years ago
Hi @tja4472, thanks for the post!
This is probably related to using JSON.stringify
.. I'm open to using other methods, but I'm hoping to not seriously impact performance.
Anyone interested, feel free to leave your thoughts on if it's better to keep JSON.stringify
(for performance) or switch to another method (for accuracy). Thanks!
Hi @adriancarriger
Thanks for the interesting links.
I would keep stringify and I'll make sure I have the object properties in the correct order when updating. :smile:
Regards Tim
Sounds good! 👍
When connected this will cause the subscribe to be called once.
When connected this will cause the subscribe to be called twice.
Note that the order of the fields is different.
Chrome log
For the second 'this.next' the array is identical apart from the field ordering
previousValue
newValue
Tim