Loader key including method

This commit is contained in:
James Barnsley
2019-12-10 16:56:59 +13:00
parent 9393488a3f
commit 6a0f47fc0f
24 changed files with 27148 additions and 19086 deletions

View File

@ -22,7 +22,7 @@ const request = (dispatch, getState, endpoint, method = 'GET', data = false, cac
// We do this straight away so that even if we're refreshing the token, it still registers as
// loading said endpoint
const loader_key = helpers.generateGuid();
dispatch(uiActions.startLoading(loader_key, `spotify_${endpoint}`));
dispatch(uiActions.startLoading(loader_key, `spotify_${method}_${endpoint}`));
return new Promise((resolve, reject) => {
getToken(dispatch, getState)