filter-collections
filter-collections copied to clipboard
Screen flashes (list grows and shrinks)
In the demo example, when you click on a new page, the list grows and shrinks back again very quickly. It's a not very nice user experience.
But well done on this package. Looks like a solid start to a much needed package.
Thanks! This is a know issue that I have on my todo and is about publisher sending data to subscriber. Will try to fix this with some priority since I agree that it is not a very nice user experience case.
I came up with a temporary solution that totally prevents this flick / flashing.
This is the fix applied to the filter-collections-example at https://github.com/krishamoud/filter-collections-example
HomeFilter = new Meteor.FilterCollections(People, { ... callbacks: { templateRendered: function(template){ $('.table-responsive .table > tbody > tr:nth-child(n+' + (HomeFilter.pager.get().itemsPerPage + 2) + ')').css('display','none'); }, } });
This makes only the first 10 rows visible. The selector should be adapted to each app's needs.
Hope this helps!