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.
Files changed (2) hide show
  1. package/dist/main.js +3 -3
  2. 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 ? void 0 : excludeLoadedFields(loadedFields, hookFields) : isUnboundedHook ? Array.from(owedStaleFields) : hookFields.filter((field) => owedStaleFields.has(field));
14617
- if (contributionFields && contributionFields.length === 0) return;
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 ? void 0 : Array.from(new Set([...fieldsToFetch, ...excludeLoadedFields(loadedFields, hookFields)])).sort();
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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsdf",
3
- "version": "17.0.0-rc.0",
3
+ "version": "17.0.0-rc.1",
4
4
  "description": "A data fetching solution based on t-state",
5
5
  "license": "PolyForm-Noncommercial-1.0.0",
6
6
  "author": "Lucas Santos",