Always fetch the latest posts from the server in the post list
This commit is contained in:
@@ -114,7 +114,11 @@ const { result: groupPostsResult, loading: groupLoading } = useQuery<{
|
|||||||
page: postsPage.value,
|
page: postsPage.value,
|
||||||
limit: POSTS_PAGE_LIMIT,
|
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);
|
const group = computed(() => groupPostsResult.value?.group);
|
||||||
|
|||||||
Reference in New Issue
Block a user