@jsenv/navi 0.29.225 → 0.29.226

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.
@@ -30841,22 +30841,23 @@ const routeAction = (
30841
30841
 
30842
30842
  // The instance the effect above runs on the match is the one bound to `true`
30843
30843
  // (the default params), so a prerun here is what the arrival promotes to a
30844
- // run. A prefetch that fails is forgotten rather than reported: nothing on
30845
- // screen asked for it, and the arrival asks again and shows its own failure.
30844
+ // run. A prefetch that fails is not reported: nothing on screen asked for it,
30845
+ // and the failure stays on the instance, where a run asks again — a FAILED
30846
+ // action is run, only RUNNING and COMPLETED are left alone — and the arrival
30847
+ // shows its own. It is left FAILED on purpose, not reset: the press that
30848
+ // brings the arrival also focuses the link, so a prerun can be in flight when
30849
+ // the arrival promotes it, and a reset landing after that would pull the
30850
+ // answer from under the page that is reading it.
30846
30851
  const prefetchParamless = (action) => {
30847
30852
  const instance = action.bindParams(true);
30848
- const forget = () => {
30849
- instance.reset({ reason: "prefetch failed" });
30850
- };
30851
30853
  let result;
30852
30854
  try {
30853
30855
  result = instance.prerun({ reason: "intent" });
30854
30856
  } catch {
30855
- forget();
30856
30857
  return;
30857
30858
  }
30858
30859
  if (result && typeof result.catch === "function") {
30859
- result.catch(forget);
30860
+ result.catch(() => {});
30860
30861
  }
30861
30862
  };
30862
30863