@jsenv/navi 0.30.22 → 0.30.23
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/dist/dev/jsenv_navi.js +13 -9
- package/dist/dev/jsenv_navi.js.map +2 -2
- package/dist/jsenv_navi.js +13 -9
- package/dist/jsenv_navi.js.map +2 -2
- package/package.json +1 -1
package/dist/jsenv_navi.js
CHANGED
|
@@ -28155,7 +28155,7 @@ const createResourceLifecycleManager = () => {
|
|
|
28155
28155
|
|
|
28156
28156
|
for (const restAction of config.restActionSet) {
|
|
28157
28157
|
const actionCandidateArray = restAction.matchAllSelfOrDescendant(
|
|
28158
|
-
(action) =>
|
|
28158
|
+
(action) => shouldAskAgain(action, triggeringAction),
|
|
28159
28159
|
);
|
|
28160
28160
|
|
|
28161
28161
|
for (const actionCandidate of actionCandidateArray) {
|
|
@@ -28195,7 +28195,7 @@ const createResourceLifecycleManager = () => {
|
|
|
28195
28195
|
break delete_effect;
|
|
28196
28196
|
}
|
|
28197
28197
|
if (candidateIsPlural) {
|
|
28198
|
-
if (!shouldRerunGetMany) {
|
|
28198
|
+
if (candidateVerb !== "GET" || !shouldRerunGetMany) {
|
|
28199
28199
|
break delete_effect;
|
|
28200
28200
|
}
|
|
28201
28201
|
actionsToRerun.add(actionCandidate);
|
|
@@ -28337,7 +28337,7 @@ const createResourceLifecycleManager = () => {
|
|
|
28337
28337
|
continue;
|
|
28338
28338
|
}
|
|
28339
28339
|
const instanceArray = dependentAction.matchAllSelfOrDescendant(
|
|
28340
|
-
(action) =>
|
|
28340
|
+
(action) => shouldAskAgain(action, triggeringAction),
|
|
28341
28341
|
);
|
|
28342
28342
|
for (const instance of instanceArray) {
|
|
28343
28343
|
actionsToRerun.add(instance);
|
|
@@ -28440,12 +28440,16 @@ const createResourceLifecycleManager = () => {
|
|
|
28440
28440
|
};
|
|
28441
28441
|
};
|
|
28442
28442
|
|
|
28443
|
-
// A read to ask again after a write: answered before it landed,
|
|
28444
|
-
//
|
|
28445
|
-
// would replace what the write put in the store (a rerun aborts it and asks
|
|
28446
|
-
// again). A
|
|
28447
|
-
|
|
28448
|
-
|
|
28443
|
+
// A read to ask again after a write: answered before it landed, still out, or
|
|
28444
|
+
// failed. An answer that left before the write is as stale as a completed one,
|
|
28445
|
+
// and would replace what the write put in the store (a rerun aborts it and asks
|
|
28446
|
+
// again). A failed read has no other way back: only a write asks it again.
|
|
28447
|
+
// A head start is its owner's to ask: findEffectOnActions resets one holding an
|
|
28448
|
+
// answer, and one that failed stays FAILED (see prerunAhead in route_action.js).
|
|
28449
|
+
const shouldAskAgain = (action, triggeringAction) =>
|
|
28450
|
+
(action.completed ||
|
|
28451
|
+
action.runningState === RUNNING ||
|
|
28452
|
+
(action.runningState === FAILED && !action.isPrerunSignal.peek())) &&
|
|
28449
28453
|
action !== triggeringAction;
|
|
28450
28454
|
// A write named in `writes` says for itself which reads of its own resource it
|
|
28451
28455
|
// reruns (`rerunOn: { GET_RANGE: true }`); a read it leaves out, and every read
|