breeku / Songsterify

Browse Spotify for tabs from Songsterr
https://songsterify.com/
8 stars 1 forks source link

Fix axios interceptors #8

Closed breeku closed 5 years ago

breeku commented 5 years ago

1.

User comes back to site after accesstoken from cookies has expired, accesstoken will get refreshed but calls to /recent and /playlists wont be recalled

2.

User navigates from / to /playlist or /album, GET_RECENT gets called for no reason

breeku commented 5 years ago

https://github.com/breeku/Songsterify/commit/073f7a0d88e457576031224e151559ebcac921f6

breeku commented 5 years ago

Some actions get duplicated after refreshing token, resulting in multiple api calls with same results

breeku commented 5 years ago

https://github.com/breeku/Songsterify/commit/019f426c027662397016a72624ab48bee9808d22