useEffect to trigger API call (needs delay for mopidy_connected)
This commit is contained in:
@ -115,14 +115,18 @@ export function cachebustHttpStream() {
|
||||
* relevant service to load the record - all from one neat package.
|
||||
* */
|
||||
|
||||
export function loadItem(uri, force_reload = false) {
|
||||
export function loadItems(uris, force_reload = false) {
|
||||
return {
|
||||
type: 'LOAD_ITEM',
|
||||
uri,
|
||||
type: 'LOAD_ITEMS',
|
||||
uris,
|
||||
force_reload,
|
||||
};
|
||||
}
|
||||
|
||||
export function loadItem(uri, force_reload = false) {
|
||||
return loadItems([uri], force_reload);
|
||||
}
|
||||
|
||||
export function loadTrack(uri, force_reload = false) {
|
||||
return {
|
||||
type: 'LOAD_TRACK',
|
||||
|
||||
Reference in New Issue
Block a user