knowit / Dataplattform-issues

4 stars 0 forks source link

enhancement/rewrite-api-communication #545

Closed Lekesoldat closed 2 years ago

Lekesoldat commented 2 years ago

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.