@tanstack/react-query 4.22.3 → 4.22.4

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.
@@ -3060,7 +3060,7 @@
3060
3060
  notify(options) {
3061
3061
  notifyManager.batch(() => {
3062
3062
  // First trigger the mutate callbacks
3063
- if (this.mutateOptions) {
3063
+ if (this.mutateOptions && this.hasListeners()) {
3064
3064
  if (options.onSuccess) {
3065
3065
  var _this$mutateOptions$o, _this$mutateOptions, _this$mutateOptions$o2, _this$mutateOptions2;
3066
3066