diff --git a/packages/dicomImageLoader/src/imageLoader/internal/xhrRequest.ts b/packages/dicomImageLoader/src/imageLoader/internal/xhrRequest.ts index 36235e7d6a..f0f3a53bde 100644 --- a/packages/dicomImageLoader/src/imageLoader/internal/xhrRequest.ts +++ b/packages/dicomImageLoader/src/imageLoader/internal/xhrRequest.ts @@ -97,7 +97,9 @@ function xhrRequest( if (options.onreadystatechange) { options.onreadystatechange(event, params); - return; + // This should not return, because if a hook is defined, that function + // will be called but the image load promise will never resolve. + // return; } // Default action