@zestia/ember-simple-infinite-scroller
Advanced tools
Comparing version 8.0.0 to 8.0.1
import Component from '@glimmer/component'; | ||
import { resolve } from 'rsvp'; | ||
import { debounce, cancel, scheduleOnce } from '@ember/runloop'; | ||
@@ -143,10 +144,10 @@ import { action } from '@ember/object'; | ||
async _loadMore() { | ||
_loadMore() { | ||
this.isLoading = true; | ||
await this._invokeAction('onLoadMore'); | ||
resolve(this._invokeAction('onLoadMore')).finally(() => { | ||
this.isLoading = false; | ||
this.isLoading = false; | ||
this._scheduleCheckScrollable(); | ||
this._scheduleCheckScrollable(); | ||
}); | ||
} | ||
@@ -153,0 +154,0 @@ |
# Changelog | ||
## 8.0.1 | ||
- Make sure component is not in a loading state if there is a failure to load more. | ||
## 8.0.0 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "@zestia/ember-simple-infinite-scroller", | ||
"version": "8.0.0", | ||
"version": "8.0.1", | ||
"description": "Simple infinite scroller component for Ember apps", | ||
@@ -5,0 +5,0 @@ "directories": { |
15640
145