Remove debug time delays

zio/stable
Paul Frazee 2022-09-30 11:30:18 -05:00
parent efa84fb8e7
commit b05a334dcb
8 changed files with 0 additions and 13 deletions

View File

@ -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 {

View File

@ -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}),

View File

@ -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 {

View File

@ -75,7 +75,6 @@ export class PostModel implements RemoveIndex<Post.Record> {
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({

View File

@ -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)

View File

@ -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()
}

View File

@ -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,

View File

@ -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,