pollination-react-io 1.73.4 → 1.73.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -48843,6 +48843,7 @@ var StudyCard = function (_a) {
48843
48843
  */
48844
48844
  var _12 = useSWR(authUser && _study ? [projectOwner, projectName, _study.id] : undefined, fetchJob, {
48845
48845
  revalidateOnFocus: true,
48846
+ refreshWhenHidden: true,
48846
48847
  refreshInterval: stopRefresh ? undefined : interval,
48847
48848
  fallbackData: _study,
48848
48849
  errorRetryCount: 3,
@@ -49153,6 +49154,7 @@ var RunCard = function (_a) {
49153
49154
  */
49154
49155
  var _9 = useSWR(authUser && _run ? (!localRun ? [projectOwner, projectName, _run.id] : [_run.id, _run['subfolder']]) : undefined, localRun ? fetchLocalRun : fetchRun, {
49155
49156
  revalidateOnFocus: true,
49157
+ refreshWhenHidden: true,
49156
49158
  refreshInterval: stopRefresh ? undefined : interval,
49157
49159
  fallbackData: localRun ? undefined : _run,
49158
49160
  errorRetryCount: 3,
@@ -49844,18 +49846,20 @@ var FileCard = function (_a) {
49844
49846
  setIsInactive(true);
49845
49847
  setCurrFile(undefined);
49846
49848
  setCADintegration(undefined);
49849
+ setIsLoading(false);
49847
49850
  return;
49848
49851
  }
49849
49852
  res.blob()
49850
49853
  .then(function (blob) {
49851
49854
  setCurrFile(blob);
49852
49855
  setCADintegration(blob);
49856
+ setIsLoading(false);
49853
49857
  });
49854
49858
  })
49855
49859
  .catch(function (err) {
49856
49860
  console.error(err);
49857
- })
49858
- .finally(function () { return setIsLoading(false); });
49861
+ setIsLoading(false);
49862
+ });
49859
49863
  };
49860
49864
  var extension = React.useMemo(function () {
49861
49865
  if (!path)