@jsenv/navi 0.18.26 → 0.18.27

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.
@@ -2335,7 +2335,6 @@ const actionRunEffect = (
2335
2335
  if (typeof action === "function") {
2336
2336
  action = createAction(action);
2337
2337
  }
2338
- let lastTruthyParams;
2339
2338
  let actionParamsSignal = computed(() => {
2340
2339
  const params = deriveActionParamsFromSignals();
2341
2340
  action.debug(
@@ -2352,9 +2351,6 @@ const actionRunEffect = (
2352
2351
  );
2353
2352
  }
2354
2353
  }
2355
- if (lastTruthyParams === undefined) {
2356
- lastTruthyParams = params;
2357
- }
2358
2354
  return params;
2359
2355
  });
2360
2356
  if (debounce) {
@@ -2395,8 +2391,9 @@ const actionRunEffect = (
2395
2391
  actionTargetPrevious.abort("abortOnFalsyParams");
2396
2392
  return;
2397
2393
  }
2398
- if (compareTwoJsValues(lastTruthyParams, actionTarget.params)) {
2399
- actionTarget.run({ reason: "params restored to last truthy value" });
2394
+ if (!actionTargetPrevious.params) {
2395
+ // coming from falsy-params state: action may already be cached, avoid unnecessary rerun
2396
+ actionTarget.run({ reason: "params restored from falsy state" });
2400
2397
  } else {
2401
2398
  actionTarget.rerun({ reason: "params modified" });
2402
2399
  }