src/common/util/getGraphQLFetcher.js
Function getGraphQLFetcher
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function getGraphQLFetcher(dispatch, auth, baseUrl = process.env.APP_BASE_URL, throwErrors = true) {
dispatch(fetchDataRequest())
return graphQLParams => {
const options = {
method: 'post',