Always fetch the latest posts from the server in the post list

This commit is contained in:
Massedil
2025-06-18 18:16:11 +02:00
parent 1f8dc18feb
commit 5486b1fca2

View File

@@ -114,7 +114,11 @@ const { result: groupPostsResult, loading: groupLoading } = useQuery<{
page: postsPage.value,
limit: POSTS_PAGE_LIMIT,
}),
() => ({ enabled: props.preferredUsername !== undefined })
() => ({
enabled: props.preferredUsername !== undefined,
// always display the latest information
fetchPolicy: "cache-and-network",
})
);
const group = computed(() => groupPostsResult.value?.group);