src/utils/networking.js
Function getFromCacheOrFetch
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getFromCacheOrFetch(url, additionalHeaders = {}) {
return new Promise((resolve, reject) => {
cache
.get(url)
.then(value => {
Function fetchAndDispatch
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
buildUrl,
dispatch,
beforeFetch,
onSuccessFetch,
onErrorFetch,
Function fetchMultipleAndDispatch
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
urls,
dispatch,
beforeFetch,
onSuccessFetch,
onErrorFetch