meteor-infinite-scroll-deprecated
meteor-infinite-scroll-deprecated copied to clipboard
TypeError: Template.instance().infiniteScroll.getLimit is not a function
In the README API section:
You can reactively access the current limit by using [templateInstance].infiniteScroll.getLimit() (e.g. Template.instance().infiniteScroll.getLimit())
However, it appears that the getLimit function is being attached directly to the template instance. So Template.instance().getLimit() works. Is this expected behaviour and a typo in the README?
Thanks for the great package!
@maxfi did you find any solution to it ?
@gurjit03 I haven't used the package in a while but as I recall I just ended up using Template.instance().getLimit() instead of Template.instance().infiniteScroll.getLimit().
Thanks, @maxfi. It works for me.