@tanstack/react-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.
@@ -430,9 +430,10 @@
430
430
  }
431
431
 
432
432
  setFocused(focused) {
433
- this.focused = focused;
433
+ const changed = this.focused !== focused;
434
434
 
435
- if (focused) {
435
+ if (changed) {
436
+ this.focused = focused;
436
437
  this.onFocus();
437
438
  }
438
439
  }
@@ -518,9 +519,10 @@
518
519
  }
519
520
 
520
521
  setOnline(online) {
521
- this.online = online;
522
+ const changed = this.online !== online;
522
523
 
523
- if (online) {
524
+ if (changed) {
525
+ this.online = online;
524
526
  this.onOnline();
525
527
  }
526
528
  }