Migrating from jquery.ajax to request

This commit is contained in:
James Barnsley
2019-09-10 07:40:26 +12:00
parent c08cc71c47
commit 26b38cd0f9
6 changed files with 135 additions and 1908 deletions

View File

@ -1,5 +1,4 @@
import axios from 'axios';
const coreActions = require('../core/actions');
const uiActions = require('../ui/actions');
const helpers = require('../../helpers');
@ -35,7 +34,6 @@ const sendRequest = (dispatch, getState, params, signed = false) => new Promise(
const config = {
method: http_method,
timeout: 30000,
cache: "force-cache",
};
const loader_key = helpers.generateGuid();