Kurounin / Pagination

This package allows you to paginate the subscriptions over meteor's collections. It can be used in a Blaze template or in ReactJS.
MIT License
56 stars 22 forks source link

Question: how to refresh the current page when reactive is false? #74

Closed jvarahuayta closed 6 years ago

jvarahuayta commented 6 years ago

Actually I toggle the debug property and the new records appear, but this makes logs in browser and server.

Kurounin commented 6 years ago

There's no officially supported method at the moment, but you can use the following to force refreshing:

    'click #refresh': function(event, templateInstance) {
        templateInstance.pagination.settings.set('resubscribe', Date.now());
    }
Kurounin commented 6 years ago

In version 1.1.0 there is a new method on client side which can be used:

templateInstance.pagination.refresh();
jvarahuayta commented 6 years ago

Thanks!