tangled
alpha
login
or
join now
quilling.dev
/
social-app
7
fork
atom
An ATproto social media client -- with an independent Appview.
7
fork
atom
overview
issues
pulls
pipelines
Only use cursors supplied by the server (ref #59)
Paul Frazee
3 years ago
d4b9ef3b
c4cca8cf
+5
-7
3 changed files
expand all
collapse all
unified
split
src
state
models
feed-view.ts
notifications-view.ts
user-follows-view.ts
+2
-4
src/state/models/feed-view.ts
···
438
438
}
439
439
this._updateAll(res)
440
440
numToFetch -= res.data.feed.length
441
441
-
cursor = this.feed[res.data.feed.length - 1]
442
442
-
? ts(this.feed[res.data.feed.length - 1])
443
443
-
: undefined
444
444
-
} while (numToFetch > 0)
441
441
+
cursor = res.data.cursor
442
442
+
} while (cursor && numToFetch > 0)
445
443
this._xIdle()
446
444
} catch (e: any) {
447
445
this._xIdle(e)
+2
-2
src/state/models/notifications-view.ts
···
379
379
}
380
380
this._updateAll(res)
381
381
numToFetch -= res.data.notifications.length
382
382
-
cursor = this.notifications[res.data.notifications.length - 1].indexedAt
383
383
-
} while (numToFetch > 0)
382
382
+
cursor = res.data.cursor
383
383
+
} while (cursor && numToFetch > 0)
384
384
this._xIdle()
385
385
} catch (e: any) {
386
386
this._xIdle(e)
+1
-1
src/state/models/user-follows-view.ts
···
1
1
import {makeAutoObservable} from 'mobx'
2
2
import {
3
3
-
AppBskyGraphGetFollowers as GetFollows,
3
3
+
AppBskyGraphGetFollows as GetFollows,
4
4
AppBskyActorRef as ActorRef,
5
5
} from '@atproto/api'
6
6
import {RootStoreModel} from './root-store'