Hook result with data as an array of SoundCloudPlaylist.
import { useMePlaylists } from "soundcloud-api-ts-next";
function MyPlaylists() {
const { data: playlists, loading } = useMePlaylists();
if (loading) return <p>Loading...</p>;
return <ul>{playlists?.map(p => <li key={p.id}>{p.title}</li>)}</ul>;
}
Fetch the current authenticated user's playlists.