Question about implementing load more button and autorun:
var sub = new SubsManager();
export default () => {
store.isLoading = true;
const handle = sub.subscribe( 'Projects.Private', store.projectsCount );
if (handle.ready()) {
store.projects.replace(Projects.find({}).fetch());
store.isLoading = false
}
};
Then in a react component I press "Load more" button with onClick event and increase store.projectsCount on 10 for example and it seems that subscription runs again and re-render entire project list(And more important that it scrolls you browser window to the top and break user experience).
Any suggestions how to update subscription without reloading entire list?
Question about implementing load more button and autorun:
Then in a react component I press "Load more" button with onClick event and increase
store.projectsCount
on 10 for example and it seems that subscription runs again and re-render entire project list(And more important that it scrolls you browser window to the top and break user experience).Any suggestions how to update subscription without reloading entire list?