diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-07-21 19:55:04 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-07-21 19:55:04 -0500 |
commit | cc8a1702043cfbd783f4caa61ab9eb8aeb421072 (patch) | |
tree | 2fff2daed3558d555ee79f34b3c8ba714e40789b /src/state/models/post-thread-view.ts | |
parent | 29ed3d2ecf1fd6de8af0f25f6d541fe2adaf61f9 (diff) | |
download | voidsky-cc8a1702043cfbd783f4caa61ab9eb8aeb421072.tar.zst |
Add profile view
Diffstat (limited to 'src/state/models/post-thread-view.ts')
-rw-r--r-- | src/state/models/post-thread-view.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/state/models/post-thread-view.ts b/src/state/models/post-thread-view.ts index 2e545a2a4..3c3b8d92d 100644 --- a/src/state/models/post-thread-view.ts +++ b/src/state/models/post-thread-view.ts @@ -72,12 +72,15 @@ export class PostThreadViewPostModel implements bsky.PostThreadView.Post { const UNLOADED_THREAD = new PostThreadViewPostModel('') export class PostThreadViewModel implements bsky.PostThreadView.Response { + // state isLoading = false isRefreshing = false hasLoaded = false error = '' resolvedUri = '' params: bsky.PostThreadView.Params + + // data thread: PostThreadViewPostModel = UNLOADED_THREAD constructor( @@ -167,7 +170,7 @@ export class PostThreadViewModel implements bsky.PostThreadView.Response { private async _refresh() { this._xLoading(true) // TODO: refetch and update items - await new Promise(r => setTimeout(r, 1e3)) // DEBUG + await new Promise(r => setTimeout(r, 250)) // DEBUG this._xIdle() } |