Recent posts
This commit is contained in:
@@ -11,3 +11,9 @@ export const profileQueryOptions = (id?: number) =>
|
||||
queryKey: ['profile', { id }],
|
||||
queryFn: () => Api.user(id),
|
||||
});
|
||||
|
||||
export const profilePostsQueryOptions = (id: number) =>
|
||||
queryOptions({
|
||||
queryKey: ['profilePosts', { id }],
|
||||
queryFn: () => Api.userPosts(id),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user