These are chat archives for canjs/canjs

17th
Jun 2015
Justin Meyer
@justinbmeyer
Jun 17 2015 01:35
@blairio @cklanac was working on this
blairio
@blairio
Jun 17 2015 14:33
@cklanac I would be interested to learn where you have gotten with this. It seems like a popular pattern on native platforms (Eg. iOS UITableViewController and Android RecyclerView)
Chris Klanac
@cklanac
Jun 17 2015 14:49
@blairio I'll put together a jsBin that shows the relevant bits… stay tuned
blairio
@blairio
Jun 17 2015 14:49
Thanks @cklanac
blairio
@blairio
Jun 17 2015 18:27
Does anybody know if there is a quick way on the console to find out how many live bindings there are on a page at a given moment? Thanks.
Chris Klanac
@cklanac
Jun 17 2015 21:57
Basically loops over all the list items that haven’t been fetched yet. It checks each item to see if it is within the viewport. If it is, then it sets a value on the ViewModel which you can use to fetch data or whatever.
blairio
@blairio
Jun 17 2015 21:58
Cool. Thanks @cklanac I will look at it soon
Chris Klanac
@cklanac
Jun 17 2015 21:59
I also short circuit the loop once we get to the first item past the viewport which should help performance a bit on really large lists.
dylanrtt
@dylanrtt
Jun 17 2015 23:52
are stache partials supposed to completely re-render when the parent scope changes?