@tanstack/vue-query 4.29.22 → 4.29.23
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.
|
@@ -406,9 +406,10 @@
|
|
|
406
406
|
}
|
|
407
407
|
|
|
408
408
|
setFocused(focused) {
|
|
409
|
-
this.focused
|
|
409
|
+
const changed = this.focused !== focused;
|
|
410
410
|
|
|
411
|
-
if (
|
|
411
|
+
if (changed) {
|
|
412
|
+
this.focused = focused;
|
|
412
413
|
this.onFocus();
|
|
413
414
|
}
|
|
414
415
|
}
|
|
@@ -494,9 +495,10 @@
|
|
|
494
495
|
}
|
|
495
496
|
|
|
496
497
|
setOnline(online) {
|
|
497
|
-
this.online
|
|
498
|
+
const changed = this.online !== online;
|
|
498
499
|
|
|
499
|
-
if (
|
|
500
|
+
if (changed) {
|
|
501
|
+
this.online = online;
|
|
500
502
|
this.onOnline();
|
|
501
503
|
}
|
|
502
504
|
}
|