@tanstack/react-query
Advanced tools
Comparing version 5.49.1 to 5.49.2
@@ -28,3 +28,3 @@ "use client"; | ||
const defaultedOptions = client.defaultQueryOptions(options); | ||
(_b = (_a = client.getDefaultOptions())._experimental_beforeQuery) == null ? void 0 : _b.call( | ||
(_b = (_a = client.getDefaultOptions().queries) == null ? void 0 : _a._experimental_beforeQuery) == null ? void 0 : _b.call( | ||
_a, | ||
@@ -71,3 +71,7 @@ defaultedOptions | ||
; | ||
(_d = (_c = client.getDefaultOptions()).afterQuery) == null ? void 0 : _d.call(_c, defaultedOptions, result); | ||
(_d = (_c = client.getDefaultOptions().queries) == null ? void 0 : _c._experimental_afterQuery) == null ? void 0 : _d.call( | ||
_c, | ||
defaultedOptions, | ||
result | ||
); | ||
return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result; | ||
@@ -74,0 +78,0 @@ } |
@@ -27,3 +27,3 @@ "use client"; | ||
const defaultedOptions = client.defaultQueryOptions(options); | ||
client.getDefaultOptions()._experimental_beforeQuery?.( | ||
client.getDefaultOptions().queries?._experimental_beforeQuery?.( | ||
defaultedOptions | ||
@@ -69,3 +69,6 @@ ); | ||
; | ||
client.getDefaultOptions().afterQuery?.(defaultedOptions, result); | ||
client.getDefaultOptions().queries?._experimental_afterQuery?.( | ||
defaultedOptions, | ||
result | ||
); | ||
return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result; | ||
@@ -72,0 +75,0 @@ } |
{ | ||
"name": "@tanstack/react-query", | ||
"version": "5.49.1", | ||
"version": "5.49.2", | ||
"description": "Hooks for managing, caching and syncing asynchronous and remote data in React", | ||
@@ -5,0 +5,0 @@ "author": "tannerlinsley", |
@@ -52,3 +52,3 @@ 'use client' | ||
;(client.getDefaultOptions() as any)._experimental_beforeQuery?.( | ||
;(client.getDefaultOptions().queries as any)?._experimental_beforeQuery?.( | ||
defaultedOptions, | ||
@@ -129,3 +129,6 @@ ) | ||
;(client.getDefaultOptions() as any).afterQuery?.(defaultedOptions, result) | ||
;(client.getDefaultOptions().queries as any)?._experimental_afterQuery?.( | ||
defaultedOptions, | ||
result, | ||
) | ||
@@ -132,0 +135,0 @@ // Handle result property usage tracking |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1095919
21884