add pagination in following and followers

This commit is contained in:
Fran
2026-01-24 09:02:49 -03:00
parent 9eb92b0c06
commit 54593dd2eb
8 changed files with 136 additions and 20 deletions
+3 -1
View File
@@ -10,12 +10,14 @@ export const load: PageLoad = async ({ params, fetch }) => {
const seguidosResponse: UsersResponseDto | null = await obtenerSeguidosPorUsuario(
usuario.id,
1,
100,
fetch
);
return {
usuario,
seguidos: seguidosResponse?.response || []
seguidos: seguidosResponse?.response || [],
totalCount: seguidosResponse?.totalCount ?? 0
};
};