Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
this.update() always updating every child tag can cause slow/unresponsive UI. Workarounds? #1840
The issue is regarding how
I have demoed this issue here https://jsfiddle.net/johnsq/1amhgt3L/1/. (please note the child tag named
This issue raises the following questions..
I'll look forward to your responses. Thanks John
no there will be in email@example.com with shouldUpdate
you can simply target a single item in your list and update it https://jsfiddle.net/c8eag92d/ this does the trick:
var item = this.tags['big-data-tag'].tags.item item.first_name = 'jack' item.update()
good luck with your app. I am closing this issue
Thanks @GianlucaGuarini for a great/fast response. Updating a list item directly is something I have never tried and will definitely be of use for to me.
Lastly, I would never in a real app try to render 6000 items. Just a good way of demonstrating the affect of a large tag. In my actually app, I'm working with lists around 300 items, but within each tag, nested html, buttons, dynamic styles etc do clearly create a lot of bulk and this does cause similar delays on updates as I described here... but I get now that being more specific about which elements I update is the way forwards. Thanks