react-spotify-api
react-spotify-api copied to clipboard
Fixed UserArtists component
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.