The user ID. Pass undefined to skip the request.
Hook result with data as an array of followed SoundCloudUser.
import { useUserFollowings } from "soundcloud-api-ts-next";
function Following({ userId }: { userId: number }) {
const { data: followings, loading } = useUserFollowings(userId);
if (loading) return <p>Loading...</p>;
return <p>Following {followings?.length} users</p>;
}
Fetch users that a SoundCloud user is following.