@tanstack/react-query 4.29.25 → 4.32.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.
|
@@ -2669,12 +2669,13 @@
|
|
|
2669
2669
|
const {
|
|
2670
2670
|
notifyOnChangeProps
|
|
2671
2671
|
} = this.options;
|
|
2672
|
+
const notifyOnChangePropsValue = typeof notifyOnChangeProps === 'function' ? notifyOnChangeProps() : notifyOnChangeProps;
|
|
2672
2673
|
|
|
2673
|
-
if (
|
|
2674
|
+
if (notifyOnChangePropsValue === 'all' || !notifyOnChangePropsValue && !this.trackedProps.size) {
|
|
2674
2675
|
return true;
|
|
2675
2676
|
}
|
|
2676
2677
|
|
|
2677
|
-
const includedProps = new Set(
|
|
2678
|
+
const includedProps = new Set(notifyOnChangePropsValue != null ? notifyOnChangePropsValue : this.trackedProps);
|
|
2678
2679
|
|
|
2679
2680
|
if (this.options.useErrorBoundary) {
|
|
2680
2681
|
includedProps.add('error');
|