Will replace fetch with axios.
Will make use of interceptors which lets us remove the setInterval refreshing tokens every 10th minute and instead only renew upon request of data.
This should also eliminate the refreshing of the components.
When this is completed I will use SWR to enable caching of the network requests, effectively reducing API requests.
Will replace
fetch
with axios. Will make use of interceptors which lets us remove thesetInterval
refreshing tokens every 10th minute and instead only renew upon request of data.This should also eliminate the refreshing of the components.
When this is completed I will use SWR to enable caching of the network requests, effectively reducing API requests.