Extract hook and add config and documentation

This commit is contained in:
igoroctaviano committed 2021-05-13 09:06:11 -03:00
1 parent 35aaad175c
commit 2ea227ca06
13 files changed
+119 -64

No files matched your search

@@ -4,6 +4,7 @@ import { api } from 'dicomweb-client';
import DICOMWeb from '../DICOMWeb';
import errorHandler from '../errorHandler';
import getXHRRetryRequestHook from './xhrRetryRequestHook';
const getImageId = imageObj => {
if (!imageObj) {
@@ -66,6 +67,7 @@ const wadorsRetriever = (
url,
headers,
errorInterceptor,
requestHooks: [getXHRRetryRequestHook()],
};
const dicomWeb = new api.DICOMwebClient(config);