Releases: idanlo/react-spotify-api
Releases · idanlo/react-spotify-api
v3.0.0
Version 3.0.0 Breaking Change
Before version 3.0.0 the parameters to props.children
were passed in this order - data, loading, error
. It is now passed as an object, so you would now use the Album
component like this -
<Album id={...}>
{({ data }) => {
return <></>;
}}
</Album>
As opposed to the previous versions where you would use the components like this -
<Album id={...}>
{(data, loading, error) => {
return <></>;
}}
</Album>
This way you can choose which parameters you would like to have, and if you want just the error parameter you can omit the other two. This works well with the loadMoreData
parameter, you don't need to write all 4 parameters if you just need some of them.
2.6.0
Fix security vulnerabilities
v2.3.0
Components now return the error as an object!
- #22 - fix older apirequest component tests - the error is now an object/null and not a boolean value f0a9285
- #22 - test new url mock paths b34f4b0
- #22 - add more mock paths to return different types of errors cb06f32
- #22 add error handling with the response object received by the fetch API 4c694d9
- #22 update deprecated no-watch arg in test script 6cb77a3
Thanks @jamsinclair for contributing!
v2.1.0
v2.0.1
Version 2!
Fix a bug where changing the query in the Search
component or useSearch
hook would not trigger a re-fetch of the data.