tsdf 8.0.0-beta.18 → 8.0.0-beta.19
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.cjs +4 -3
- package/dist/main.js +4 -3
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -1635,12 +1635,13 @@ function newTSDFListQueryStore({
|
|
|
1635
1635
|
}
|
|
1636
1636
|
}
|
|
1637
1637
|
function startItemMutation(itemId) {
|
|
1638
|
-
if (!fetchItemOrquestrator)
|
|
1639
|
-
throw new Error(noFetchFnError);
|
|
1640
1638
|
const itemsKey = getItemsKeyArray(itemId);
|
|
1641
1639
|
const endMutations = [];
|
|
1642
1640
|
for (const { itemKey, payload } of itemsKey) {
|
|
1643
|
-
endMutations.push(
|
|
1641
|
+
endMutations.push(
|
|
1642
|
+
fetchItemOrquestrator?.get(itemKey).startMutation() || (() => {
|
|
1643
|
+
})
|
|
1644
|
+
);
|
|
1644
1645
|
if (syncMutationsAndInvalidations) {
|
|
1645
1646
|
for (const [queryKey, query] of Object.entries(store.state.queries)) {
|
|
1646
1647
|
if (syncMutationsAndInvalidations.syncItemAndQuery(
|
package/dist/main.js
CHANGED
|
@@ -1601,12 +1601,13 @@ function newTSDFListQueryStore({
|
|
|
1601
1601
|
}
|
|
1602
1602
|
}
|
|
1603
1603
|
function startItemMutation(itemId) {
|
|
1604
|
-
if (!fetchItemOrquestrator)
|
|
1605
|
-
throw new Error(noFetchFnError);
|
|
1606
1604
|
const itemsKey = getItemsKeyArray(itemId);
|
|
1607
1605
|
const endMutations = [];
|
|
1608
1606
|
for (const { itemKey, payload } of itemsKey) {
|
|
1609
|
-
endMutations.push(
|
|
1607
|
+
endMutations.push(
|
|
1608
|
+
fetchItemOrquestrator?.get(itemKey).startMutation() || (() => {
|
|
1609
|
+
})
|
|
1610
|
+
);
|
|
1610
1611
|
if (syncMutationsAndInvalidations) {
|
|
1611
1612
|
for (const [queryKey, query] of Object.entries(store.state.queries)) {
|
|
1612
1613
|
if (syncMutationsAndInvalidations.syncItemAndQuery(
|