Hi all,
I’m migrating a React Application to cornerstone-core@2.6.1
. The old code is using poolManager
to prefetch images and I don’t know how to migrate that to the new version.
This is the code that prefetch some images:
nonCachedImageIds.forEach((imageId) => {
cornerstone.poolManager.addRequest({}, imageId, requestType, preventCache, doneCallback, failCallback, addToBeginning);
});
this.cornerstone.startGrabbing();
And this is the code that stops image prefetching:
cornerstone.poolManager.clearRequestStack('prefetch');
The problem is that property cornerstone.poolManager
is missing in version 2.6.1
. What’s the equivalent in the new version?