Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

fix(mobile): fix pull to refresh disappearing on iOS

daniel31x13fa4d9313ff1d
diff --git a/apps/mobile/app/(tabs)/dashboard/index.tsx b/apps/mobile/app/(tabs)/dashboard/index.tsx
index cfb2d7fa..30822f14 100644
--- a/apps/mobile/app/(tabs)/dashboard/index.tsx
+++ b/apps/mobile/app/(tabs)/dashboard/index.tsx
@@ -22,9 +22,8 @@ export default function DashboardScreen() {
...dashboardData
} = useDashboardData(auth);
const { data: user, ...userData } = useUser(auth);
- const { data: collections = [], refetch: refetchCollections } =
- useCollections(auth);
- const { data: tags = [], refetch: refetchTags } = useTags(auth);
+ const { data: collections = [], ...collectionsData } = useCollections(auth);
+ const { data: tags = [], ...tagsData } = useTags(auth);
const { colorScheme } = useColorScheme();
@@ -62,12 +61,17 @@ export default function DashboardScreen() {
<ScrollView
refreshControl={
<Spinner
- refreshing={dashboardData.isLoading || userData.isLoading}
+ refreshing={
+ dashboardData.isRefetching ||
+ userData.isRefetching ||
+ collectionsData.isRefetching ||
+ tagsData.isRefetching
+ }
onRefresh={() => {
dashboardData.refetch();
userData.refetch();
- refetchCollections();
- refetchTags();
+ collectionsData.refetch();
+ tagsData.refetch();
}}
progressBackgroundColor={
rawTheme[colorScheme as ThemeName]["base-200"]