diff --git a/src/state/models/feed-view.ts b/src/state/models/feed-view.ts index 7b4b45da..585bbce2 100644 --- a/src/state/models/feed-view.ts +++ b/src/state/models/feed-view.ts @@ -234,7 +234,6 @@ export class FeedViewModel { private async _initialLoad(isRefreshing = false) { this._xLoading(isRefreshing) - await new Promise(r => setTimeout(r, 250)) // DEBUG try { const res = await this.rootStore.api.todo.social.getFeed(this.params) this._replaceAll(res) @@ -246,7 +245,6 @@ export class FeedViewModel { private async _loadMore() { this._xLoading() - await new Promise(r => setTimeout(r, 250)) // DEBUG try { const params = Object.assign({}, this.params, { before: this.loadMoreCursor, @@ -267,7 +265,6 @@ export class FeedViewModel { private async _update() { this._xLoading() - await new Promise(r => setTimeout(r, 250)) // DEBUG let numToFetch = this.feed.length let cursor = undefined try { diff --git a/src/state/models/liked-by-view.ts b/src/state/models/liked-by-view.ts index cb76d0bb..5c873b19 100644 --- a/src/state/models/liked-by-view.ts +++ b/src/state/models/liked-by-view.ts @@ -112,7 +112,6 @@ export class LikedByViewModel { private async _fetch(isRefreshing = false) { this._xLoading(isRefreshing) - await new Promise(r => setTimeout(r, 250)) // DEBUG try { const res = await this.rootStore.api.todo.social.getLikedBy( Object.assign({}, this.params, {uri: this.resolvedUri}), diff --git a/src/state/models/notifications-view.ts b/src/state/models/notifications-view.ts index 0ee5fd81..a482e7d5 100644 --- a/src/state/models/notifications-view.ts +++ b/src/state/models/notifications-view.ts @@ -208,7 +208,6 @@ export class NotificationsViewModel { private async _initialLoad(isRefreshing = false) { this._xLoading(isRefreshing) - await new Promise(r => setTimeout(r, 250)) // DEBUG try { const res = await this.rootStore.api.todo.social.getNotifications( this.params, @@ -222,7 +221,6 @@ export class NotificationsViewModel { private async _loadMore() { this._xLoading() - await new Promise(r => setTimeout(r, 250)) // DEBUG try { const params = Object.assign({}, this.params, { before: this.loadMoreCursor, @@ -237,7 +235,6 @@ export class NotificationsViewModel { private async _update() { this._xLoading() - await new Promise(r => setTimeout(r, 250)) // DEBUG let numToFetch = this.notifications.length let cursor = undefined try { diff --git a/src/state/models/post.ts b/src/state/models/post.ts index e6542a37..73708311 100644 --- a/src/state/models/post.ts +++ b/src/state/models/post.ts @@ -75,7 +75,6 @@ export class PostModel implements RemoveIndex { private async _load() { this._xLoading() - await new Promise(r => setTimeout(r, 250)) // DEBUG try { const urip = new AdxUri(this.uri) const res = await this.rootStore.api.todo.social.post.get({ diff --git a/src/state/models/profile-view.ts b/src/state/models/profile-view.ts index 7a85d06a..e7685482 100644 --- a/src/state/models/profile-view.ts +++ b/src/state/models/profile-view.ts @@ -121,7 +121,6 @@ export class ProfileViewModel { private async _load(isRefreshing = false) { this._xLoading(isRefreshing) - await new Promise(r => setTimeout(r, 250)) // DEBUG try { const res = await this.rootStore.api.todo.social.getProfile(this.params) this._replaceAll(res) diff --git a/src/state/models/reposted-by-view.ts b/src/state/models/reposted-by-view.ts index 90f4764b..9b5b2ff5 100644 --- a/src/state/models/reposted-by-view.ts +++ b/src/state/models/reposted-by-view.ts @@ -112,7 +112,6 @@ export class RepostedByViewModel { private async _fetch(isRefreshing = false) { this._xLoading(isRefreshing) - await new Promise(r => setTimeout(r, 250)) // DEBUG try { const res = await this.rootStore.api.todo.social.getRepostedBy( Object.assign({}, this.params, {uri: this.resolvedUri}), @@ -127,7 +126,6 @@ export class RepostedByViewModel { private async _refresh() { this._xLoading(true) // TODO: refetch and update items - await new Promise(r => setTimeout(r, 250)) // DEBUG this._xIdle() } diff --git a/src/state/models/user-followers-view.ts b/src/state/models/user-followers-view.ts index 8d6a929b..21244c5c 100644 --- a/src/state/models/user-followers-view.ts +++ b/src/state/models/user-followers-view.ts @@ -81,7 +81,6 @@ export class UserFollowersViewModel { private async _fetch(isRefreshing = false) { this._xLoading(isRefreshing) - await new Promise(r => setTimeout(r, 250)) // DEBUG try { const res = await this.rootStore.api.todo.social.getUserFollowers( this.params, diff --git a/src/state/models/user-follows-view.ts b/src/state/models/user-follows-view.ts index 45f8b4b0..d92effc0 100644 --- a/src/state/models/user-follows-view.ts +++ b/src/state/models/user-follows-view.ts @@ -82,7 +82,6 @@ export class UserFollowsViewModel { private async _fetch(isRefreshing = false) { this._xLoading(isRefreshing) - await new Promise(r => setTimeout(r, 250)) // DEBUG try { const res = await this.rootStore.api.todo.social.getUserFollows( this.params,