qortex-core 0.1.7 → 0.1.8
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/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -227,7 +227,7 @@ var QueryManagerCore = class {
|
|
|
227
227
|
const promise = Promise.resolve(result);
|
|
228
228
|
state.fetchPromise = promise;
|
|
229
229
|
promise.then((result2) => {
|
|
230
|
-
state.data = result2;
|
|
230
|
+
state.data = state.equalityFn(state.data, result2) ? state.data : result2;
|
|
231
231
|
state.status = "success";
|
|
232
232
|
state.updatedAt = Date.now();
|
|
233
233
|
state.isError = false;
|
package/index.mjs
CHANGED
|
@@ -190,7 +190,7 @@ var QueryManagerCore = class {
|
|
|
190
190
|
const promise = Promise.resolve(result);
|
|
191
191
|
state.fetchPromise = promise;
|
|
192
192
|
promise.then((result2) => {
|
|
193
|
-
state.data = result2;
|
|
193
|
+
state.data = state.equalityFn(state.data, result2) ? state.data : result2;
|
|
194
194
|
state.status = "success";
|
|
195
195
|
state.updatedAt = Date.now();
|
|
196
196
|
state.isError = false;
|