function usePlaylistMemberships
usePlaylistMemberships(dumpId: string | null): UsePlaylistMembershipsResult

Returns the user's playlists with whether each holds dumpId, from GET /api/me/playlists?contains=:dumpId. A null dumpId, as before DumpCreateModal has posted its dump, loads nothing.

Parameters

dumpId: string | null

Return Type

Usage

import { usePlaylistMemberships } from "src/hooks/playlist/usePlaylistMemberships.ts";