react-spotify-api icon indicating copy to clipboard operation
react-spotify-api copied to clipboard

Fixed UserArtists component

Open rpeyron opened this issue 4 years ago • 0 comments

Hello,

It seems that the UserArtist result structure is not compatible with react-spotify-api expected result because it includes it in an artists toplevel object (https://developer.spotify.com/documentation/web-api/reference/#category-follow). It is annoying because loadMoreData won't work.

This PR adds a processor to useApiRequest that helps to customize if needed the result.

I have also updated the documentation for UserArtists to make it compatible with v3.0.0 new syntax.

rpeyron avatar Aug 01 '21 23:08 rpeyron