@spoosh/core 0.8.0 → 0.8.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/index.js +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1147,12 +1147,14 @@ function createOperationController(options) {
|
|
|
1147
1147
|
const cached = stateManager.getCache(queryKey);
|
|
1148
1148
|
if (cached) {
|
|
1149
1149
|
stateManager.setCache(queryKey, {
|
|
1150
|
-
state: { ...cached.state, ...updater }
|
|
1150
|
+
state: { ...cached.state, ...updater },
|
|
1151
|
+
stale: false
|
|
1151
1152
|
});
|
|
1152
1153
|
} else {
|
|
1153
1154
|
stateManager.setCache(queryKey, {
|
|
1154
1155
|
state: { ...createInitialState(), ...updater },
|
|
1155
|
-
tags
|
|
1156
|
+
tags,
|
|
1157
|
+
stale: false
|
|
1156
1158
|
});
|
|
1157
1159
|
}
|
|
1158
1160
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -1091,12 +1091,14 @@ function createOperationController(options) {
|
|
|
1091
1091
|
const cached = stateManager.getCache(queryKey);
|
|
1092
1092
|
if (cached) {
|
|
1093
1093
|
stateManager.setCache(queryKey, {
|
|
1094
|
-
state: { ...cached.state, ...updater }
|
|
1094
|
+
state: { ...cached.state, ...updater },
|
|
1095
|
+
stale: false
|
|
1095
1096
|
});
|
|
1096
1097
|
} else {
|
|
1097
1098
|
stateManager.setCache(queryKey, {
|
|
1098
1099
|
state: { ...createInitialState(), ...updater },
|
|
1099
|
-
tags
|
|
1100
|
+
tags,
|
|
1101
|
+
stale: false
|
|
1100
1102
|
});
|
|
1101
1103
|
}
|
|
1102
1104
|
};
|