spinamp-hooks
  • About
  • Installation
  • Basic usage
  • Reference
    • Hooks reference
      • Tracks
      • Artists
      • Collection
      • NFTs
      • Platforms
      • Playlists
  • spinamp-sdk inheritance
  • Advanced usage
Powered by GitBook
On this page
  • Tracks
  • Artists
  • Collection
  • Platforms
  • Playlists
  1. Reference

Hooks reference

PreviousBasic usageNextTracks

Last updated 2 years ago

Hooks give easy and quick way to access particular data types from spinamp database. Every hook is built on top of useQuery or useInfiniteQuery hooks from 'react-query' ().

Each hook returns all properties from the wrapped hooks, extended with some direct accessible data like tracks, artist, etc. Every hook also takes optional UseQueryOptions object as the last argument, which can be used to set some specific react-query options.

Below is a list of all hooks APIs, grouped by referencing data types.

We'd also recommend skimming over the for a list and description of query parameters and interfaces for all returned data.

Additionally, exploring the where the data comes from will give you a better feel for what's available too.

Tracks

Artists

Collection

Platforms

Playlists

https://tanstack.com/query/v4/docs/reference/useQuery
@spinamp/spinamp-sdk
GraphQL playground
Tracks
Artists
Collection
Platforms
Playlists