Routing all fetchers to type-specific call; Mopidy getUris to handle unknown ones

This commit is contained in:
James Barnsley
2021-01-14 19:35:30 +13:00
parent 4151f4fc18
commit 5778706df7
22 changed files with 644 additions and 399 deletions

View File

@ -50,12 +50,12 @@ class Artist extends React.Component {
const {
uri,
coreActions: {
loadItem,
loadArtist,
},
} = this.props;
this.setWindowTitle();
loadItem(uri, { full: true });
loadArtist(uri, { full: true });
}
componentDidUpdate = ({
@ -66,12 +66,12 @@ class Artist extends React.Component {
uri,
artist,
coreActions: {
loadItem,
loadArtist,
},
} = this.props;
if (uri !== prevUri) {
loadItem(uri, { full: true });
loadArtist(uri, { full: true });
}
if (!prevArtist && artist) this.setWindowTitle(artist);