@tanstack/react-query 4.22.0 → 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.
- package/build/umd/index.development.js +1 -1
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +9 -7
- package/src/__tests__/suspense.test.tsx +4 -3
- package/src/__tests__/useInfiniteQuery.test.tsx +37 -16
- package/src/__tests__/useMutation.test.tsx +59 -3
- package/src/__tests__/useQueries.test.tsx +13 -4
|
@@ -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
|
|