LastFM authorization format; Sharing config working

This commit is contained in:
James Barnsley
2018-10-01 21:51:46 +13:00
parent ba0f780c28
commit 85c5786d9e
18 changed files with 12014 additions and 15081 deletions

View File

@ -54,12 +54,11 @@ const SpotifyMiddleware = (function(){
// Flush out the previous user's library
store.dispatch(spotifyActions.flushLibrary());
// Pass to reducer
// Wait a few moments before we fetch, allowing the import to complete first
// TODO: Use callbacks for better code accuracy
setTimeout(() => {store.dispatch(spotifyActions.getMe())}, 100);
next(action);
// Then get the new user
store.dispatch(spotifyActions.getMe());
break;
case 'SPOTIFY_RECOMMENDATIONS_LOADED':