about summary refs log tree commit diff
path: root/src/view/screens/Profile.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-11-27 17:41:30 -0800
committerGitHub <noreply@github.com>2023-11-27 17:41:30 -0800
commitf580d4daf0d2172fa285a5a87a1bec5100a70f63 (patch)
tree425c866f9d39a2c193d0b8097bcf01d6bbfe2064 /src/view/screens/Profile.tsx
parentd4714baf13561236a85d44fec144f7f27a149bfd (diff)
downloadvoidsky-f580d4daf0d2172fa285a5a87a1bec5100a70f63.tar.zst
Restore post-thread caching behaviors (react-query refactor) (#2010)
* Rework resolve-did and resolve-uri queries to be smarter about cache reuse

* Precache handle resolutions

* Remove old unused code

* Load placeholder threads from the post-feed and notifications-feed queries

* Remove logs

* Fix bad ref

* Add loading spinners to the cache-loading thread view

* Scroll replies into view when loading threads

* Add caching within a thread

* Fix: dont show bottom border when the child spinner is active
Diffstat (limited to 'src/view/screens/Profile.tsx')
-rw-r--r--src/view/screens/Profile.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/screens/Profile.tsx b/src/view/screens/Profile.tsx
index c3bc598a0..7ddcf17af 100644
--- a/src/view/screens/Profile.tsx
+++ b/src/view/screens/Profile.tsx
@@ -58,7 +58,7 @@ export function ProfileScreen({route}: Props) {
     refetch: refetchProfile,
     isFetching: isFetchingProfile,
   } = useProfileQuery({
-    did: resolvedDid?.did,
+    did: resolvedDid,
   })
 
   const onPressTryAgain = React.useCallback(() => {