mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 18:52:06 +00:00
Feat: implement client side functionality for user follow feature
This commit is contained in:
@@ -34,7 +34,7 @@ const useGetUsersFollowingUser = ({
|
||||
return { followers: parsedPayload.data, pageCount, followerCount: count };
|
||||
};
|
||||
|
||||
const { data, error, isLoading, setSize, size } = useSWRInfinite(
|
||||
const { data, error, isLoading, setSize, size, mutate } = useSWRInfinite(
|
||||
(index) =>
|
||||
`/api/users/${userId}/followers?page_num=${index + 1}&page_size=${pageSize}`,
|
||||
fetcher,
|
||||
@@ -57,6 +57,7 @@ const useGetUsersFollowingUser = ({
|
||||
isLoading,
|
||||
isLoadingMore,
|
||||
isAtEnd,
|
||||
mutate,
|
||||
error: error as unknown,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user