Skip to content

Commit 58d5a9e

Browse files
committed
pass along hasNextUrl (fixes page not fully prefilling)
1 parent 3a9a007 commit 58d5a9e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/infinite-ajax-scroll.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,12 @@ export default class InfiniteAjaxScroll {
157157
}
158158

159159
this.resume();
160-
}).then(() => {
160+
161+
return hasNextUrl;
162+
}).then((hasNextUrl) => {
161163
this.emitter.emit(Events.NEXTED, {pageIndex: this.pageIndex});
164+
165+
return hasNextUrl;
162166
});
163167
}
164168

0 commit comments

Comments
 (0)