filter-collections icon indicating copy to clipboard operation
filter-collections copied to clipboard

Screen flashes (list grows and shrinks)

Open elie222 opened this issue 11 years ago • 2 comments

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.

elie222 avatar Jan 28 '14 15:01 elie222

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.

julpod avatar Jan 29 '14 00:01 julpod

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!

afuggini avatar Mar 26 '14 02:03 afuggini