tsdf 17.0.0-rc.0 → 17.0.0-rc.1
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/main.js +3 -3
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -14613,12 +14613,12 @@ function useMultipleItems(items, { selector, loadFromStateOnly, returnIdleStatus
|
|
|
14613
14613
|
const fetchPriority = event.priority !== "highPriority" && itemHasMissingRequestedData(event.itemKey, hookFields) ? "highPriority" : event.priority;
|
|
14614
14614
|
if (itemInvalidationWasTriggered.has(event.itemKey)) {
|
|
14615
14615
|
if (!fieldsToFetch) return;
|
|
14616
|
-
const contributionFields = hasUnresolvedFullInvalidation ? isUnboundedHook ?
|
|
14617
|
-
if (contributionFields
|
|
14616
|
+
const contributionFields = hasUnresolvedFullInvalidation ? isUnboundedHook ? "*" : excludeLoadedFields(loadedFields, hookFields) : isUnboundedHook ? Array.from(owedStaleFields) : hookFields.filter((field) => owedStaleFields.has(field));
|
|
14617
|
+
if (contributionFields.length === 0) return;
|
|
14618
14618
|
scheduleAutomaticItemFetch(fetchPriority, firstQuery.payload, { fields: contributionFields });
|
|
14619
14619
|
return;
|
|
14620
14620
|
}
|
|
14621
|
-
if (fieldsToFetch) if (hasUnresolvedFullInvalidation) fieldsToFetch = isUnboundedHook ?
|
|
14621
|
+
if (fieldsToFetch) if (hasUnresolvedFullInvalidation) fieldsToFetch = isUnboundedHook ? "*" : Array.from(new Set([...fieldsToFetch, ...excludeLoadedFields(loadedFields, hookFields)])).sort();
|
|
14622
14622
|
else {
|
|
14623
14623
|
const rideAlongFields = isUnboundedHook ? Array.from(owedStaleFields) : hookFields.filter((field) => owedStaleFields.has(field));
|
|
14624
14624
|
fieldsToFetch = Array.from(new Set([...fieldsToFetch, ...rideAlongFields])).sort();
|