@tanstack/vue-query 4.29.25 → 4.30.0
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.
|
@@ -2645,12 +2645,13 @@
|
|
|
2645
2645
|
const {
|
|
2646
2646
|
notifyOnChangeProps
|
|
2647
2647
|
} = this.options;
|
|
2648
|
+
const notifyOnChangePropsValue = typeof notifyOnChangeProps === 'function' ? notifyOnChangeProps() : notifyOnChangeProps;
|
|
2648
2649
|
|
|
2649
|
-
if (
|
|
2650
|
+
if (notifyOnChangePropsValue === 'all' || !notifyOnChangePropsValue && !this.trackedProps.size) {
|
|
2650
2651
|
return true;
|
|
2651
2652
|
}
|
|
2652
2653
|
|
|
2653
|
-
const includedProps = new Set(
|
|
2654
|
+
const includedProps = new Set(notifyOnChangePropsValue != null ? notifyOnChangePropsValue : this.trackedProps);
|
|
2654
2655
|
|
|
2655
2656
|
if (this.options.useErrorBoundary) {
|
|
2656
2657
|
includedProps.add('error');
|