Remove debug time delays
parent
efa84fb8e7
commit
b05a334dcb
|
@ -234,7 +234,6 @@ export class FeedViewModel {
|
||||||
|
|
||||||
private async _initialLoad(isRefreshing = false) {
|
private async _initialLoad(isRefreshing = false) {
|
||||||
this._xLoading(isRefreshing)
|
this._xLoading(isRefreshing)
|
||||||
await new Promise(r => setTimeout(r, 250)) // DEBUG
|
|
||||||
try {
|
try {
|
||||||
const res = await this.rootStore.api.todo.social.getFeed(this.params)
|
const res = await this.rootStore.api.todo.social.getFeed(this.params)
|
||||||
this._replaceAll(res)
|
this._replaceAll(res)
|
||||||
|
@ -246,7 +245,6 @@ export class FeedViewModel {
|
||||||
|
|
||||||
private async _loadMore() {
|
private async _loadMore() {
|
||||||
this._xLoading()
|
this._xLoading()
|
||||||
await new Promise(r => setTimeout(r, 250)) // DEBUG
|
|
||||||
try {
|
try {
|
||||||
const params = Object.assign({}, this.params, {
|
const params = Object.assign({}, this.params, {
|
||||||
before: this.loadMoreCursor,
|
before: this.loadMoreCursor,
|
||||||
|
@ -267,7 +265,6 @@ export class FeedViewModel {
|
||||||
|
|
||||||
private async _update() {
|
private async _update() {
|
||||||
this._xLoading()
|
this._xLoading()
|
||||||
await new Promise(r => setTimeout(r, 250)) // DEBUG
|
|
||||||
let numToFetch = this.feed.length
|
let numToFetch = this.feed.length
|
||||||
let cursor = undefined
|
let cursor = undefined
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -112,7 +112,6 @@ export class LikedByViewModel {
|
||||||
|
|
||||||
private async _fetch(isRefreshing = false) {
|
private async _fetch(isRefreshing = false) {
|
||||||
this._xLoading(isRefreshing)
|
this._xLoading(isRefreshing)
|
||||||
await new Promise(r => setTimeout(r, 250)) // DEBUG
|
|
||||||
try {
|
try {
|
||||||
const res = await this.rootStore.api.todo.social.getLikedBy(
|
const res = await this.rootStore.api.todo.social.getLikedBy(
|
||||||
Object.assign({}, this.params, {uri: this.resolvedUri}),
|
Object.assign({}, this.params, {uri: this.resolvedUri}),
|
||||||
|
|
|
@ -208,7 +208,6 @@ export class NotificationsViewModel {
|
||||||
|
|
||||||
private async _initialLoad(isRefreshing = false) {
|
private async _initialLoad(isRefreshing = false) {
|
||||||
this._xLoading(isRefreshing)
|
this._xLoading(isRefreshing)
|
||||||
await new Promise(r => setTimeout(r, 250)) // DEBUG
|
|
||||||
try {
|
try {
|
||||||
const res = await this.rootStore.api.todo.social.getNotifications(
|
const res = await this.rootStore.api.todo.social.getNotifications(
|
||||||
this.params,
|
this.params,
|
||||||
|
@ -222,7 +221,6 @@ export class NotificationsViewModel {
|
||||||
|
|
||||||
private async _loadMore() {
|
private async _loadMore() {
|
||||||
this._xLoading()
|
this._xLoading()
|
||||||
await new Promise(r => setTimeout(r, 250)) // DEBUG
|
|
||||||
try {
|
try {
|
||||||
const params = Object.assign({}, this.params, {
|
const params = Object.assign({}, this.params, {
|
||||||
before: this.loadMoreCursor,
|
before: this.loadMoreCursor,
|
||||||
|
@ -237,7 +235,6 @@ export class NotificationsViewModel {
|
||||||
|
|
||||||
private async _update() {
|
private async _update() {
|
||||||
this._xLoading()
|
this._xLoading()
|
||||||
await new Promise(r => setTimeout(r, 250)) // DEBUG
|
|
||||||
let numToFetch = this.notifications.length
|
let numToFetch = this.notifications.length
|
||||||
let cursor = undefined
|
let cursor = undefined
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -75,7 +75,6 @@ export class PostModel implements RemoveIndex<Post.Record> {
|
||||||
|
|
||||||
private async _load() {
|
private async _load() {
|
||||||
this._xLoading()
|
this._xLoading()
|
||||||
await new Promise(r => setTimeout(r, 250)) // DEBUG
|
|
||||||
try {
|
try {
|
||||||
const urip = new AdxUri(this.uri)
|
const urip = new AdxUri(this.uri)
|
||||||
const res = await this.rootStore.api.todo.social.post.get({
|
const res = await this.rootStore.api.todo.social.post.get({
|
||||||
|
|
|
@ -121,7 +121,6 @@ export class ProfileViewModel {
|
||||||
|
|
||||||
private async _load(isRefreshing = false) {
|
private async _load(isRefreshing = false) {
|
||||||
this._xLoading(isRefreshing)
|
this._xLoading(isRefreshing)
|
||||||
await new Promise(r => setTimeout(r, 250)) // DEBUG
|
|
||||||
try {
|
try {
|
||||||
const res = await this.rootStore.api.todo.social.getProfile(this.params)
|
const res = await this.rootStore.api.todo.social.getProfile(this.params)
|
||||||
this._replaceAll(res)
|
this._replaceAll(res)
|
||||||
|
|
|
@ -112,7 +112,6 @@ export class RepostedByViewModel {
|
||||||
|
|
||||||
private async _fetch(isRefreshing = false) {
|
private async _fetch(isRefreshing = false) {
|
||||||
this._xLoading(isRefreshing)
|
this._xLoading(isRefreshing)
|
||||||
await new Promise(r => setTimeout(r, 250)) // DEBUG
|
|
||||||
try {
|
try {
|
||||||
const res = await this.rootStore.api.todo.social.getRepostedBy(
|
const res = await this.rootStore.api.todo.social.getRepostedBy(
|
||||||
Object.assign({}, this.params, {uri: this.resolvedUri}),
|
Object.assign({}, this.params, {uri: this.resolvedUri}),
|
||||||
|
@ -127,7 +126,6 @@ export class RepostedByViewModel {
|
||||||
private async _refresh() {
|
private async _refresh() {
|
||||||
this._xLoading(true)
|
this._xLoading(true)
|
||||||
// TODO: refetch and update items
|
// TODO: refetch and update items
|
||||||
await new Promise(r => setTimeout(r, 250)) // DEBUG
|
|
||||||
this._xIdle()
|
this._xIdle()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,6 @@ export class UserFollowersViewModel {
|
||||||
|
|
||||||
private async _fetch(isRefreshing = false) {
|
private async _fetch(isRefreshing = false) {
|
||||||
this._xLoading(isRefreshing)
|
this._xLoading(isRefreshing)
|
||||||
await new Promise(r => setTimeout(r, 250)) // DEBUG
|
|
||||||
try {
|
try {
|
||||||
const res = await this.rootStore.api.todo.social.getUserFollowers(
|
const res = await this.rootStore.api.todo.social.getUserFollowers(
|
||||||
this.params,
|
this.params,
|
||||||
|
|
|
@ -82,7 +82,6 @@ export class UserFollowsViewModel {
|
||||||
|
|
||||||
private async _fetch(isRefreshing = false) {
|
private async _fetch(isRefreshing = false) {
|
||||||
this._xLoading(isRefreshing)
|
this._xLoading(isRefreshing)
|
||||||
await new Promise(r => setTimeout(r, 250)) // DEBUG
|
|
||||||
try {
|
try {
|
||||||
const res = await this.rootStore.api.todo.social.getUserFollows(
|
const res = await this.rootStore.api.todo.social.getUserFollows(
|
||||||
this.params,
|
this.params,
|
||||||
|
|
Loading…
Reference in New Issue