Socket
Book a DemoSign in
Socket

@tanstack/query-core

Package Overview
Dependencies
Maintainers
2
Versions
398
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tanstack/query-core - npm Package Compare versions

Comparing version
5.85.4
to
5.85.5
+7
-5
build/legacy/queryObserver.cjs

@@ -66,7 +66,2 @@ "use strict";

__privateSet(this, _currentThenable, (0, import_thenable.pendingThenable)());
if (!this.options.experimental_prefetchInRender) {
__privateGet(this, _currentThenable).reject(
new Error("experimental_prefetchInRender feature flag is not enabled")
);
}
this.bindMethods();

@@ -168,2 +163,9 @@ this.setOptions(options);

onPropTracked == null ? void 0 : onPropTracked(key);
if (key === "promise" && !this.options.experimental_prefetchInRender && __privateGet(this, _currentThenable).status === "pending") {
__privateGet(this, _currentThenable).reject(
new Error(
"experimental_prefetchInRender feature flag is not enabled"
)
);
}
return Reflect.get(target, key);

@@ -170,0 +172,0 @@ }

@@ -50,7 +50,2 @@ import {

__privateSet(this, _currentThenable, pendingThenable());
if (!this.options.experimental_prefetchInRender) {
__privateGet(this, _currentThenable).reject(
new Error("experimental_prefetchInRender feature flag is not enabled")
);
}
this.bindMethods();

@@ -152,2 +147,9 @@ this.setOptions(options);

onPropTracked == null ? void 0 : onPropTracked(key);
if (key === "promise" && !this.options.experimental_prefetchInRender && __privateGet(this, _currentThenable).status === "pending") {
__privateGet(this, _currentThenable).reject(
new Error(
"experimental_prefetchInRender feature flag is not enabled"
)
);
}
return Reflect.get(target, key);

@@ -154,0 +156,0 @@ }

@@ -39,7 +39,2 @@ "use strict";

this.#currentThenable = (0, import_thenable.pendingThenable)();
if (!this.options.experimental_prefetchInRender) {
this.#currentThenable.reject(
new Error("experimental_prefetchInRender feature flag is not enabled")
);
}
this.bindMethods();

@@ -158,2 +153,9 @@ this.setOptions(options);

onPropTracked?.(key);
if (key === "promise" && !this.options.experimental_prefetchInRender && this.#currentThenable.status === "pending") {
this.#currentThenable.reject(
new Error(
"experimental_prefetchInRender feature flag is not enabled"
)
);
}
return Reflect.get(target, key);

@@ -160,0 +162,0 @@ }

@@ -24,7 +24,2 @@ // src/queryObserver.ts

this.#currentThenable = pendingThenable();
if (!this.options.experimental_prefetchInRender) {
this.#currentThenable.reject(
new Error("experimental_prefetchInRender feature flag is not enabled")
);
}
this.bindMethods();

@@ -143,2 +138,9 @@ this.setOptions(options);

onPropTracked?.(key);
if (key === "promise" && !this.options.experimental_prefetchInRender && this.#currentThenable.status === "pending") {
this.#currentThenable.reject(
new Error(
"experimental_prefetchInRender feature flag is not enabled"
)
);
}
return Reflect.get(target, key);

@@ -145,0 +147,0 @@ }

{
"name": "@tanstack/query-core",
"version": "5.85.4",
"version": "5.85.5",
"description": "The framework agnostic core that powers TanStack Query",

@@ -5,0 +5,0 @@ "author": "tannerlinsley",

@@ -85,7 +85,2 @@ import { focusManager } from './focusManager'

this.#currentThenable = pendingThenable()
if (!this.options.experimental_prefetchInRender) {
this.#currentThenable.reject(
new Error('experimental_prefetchInRender feature flag is not enabled'),
)
}

@@ -276,2 +271,13 @@ this.bindMethods()

onPropTracked?.(key as keyof QueryObserverResult)
if (
key === 'promise' &&
!this.options.experimental_prefetchInRender &&
this.#currentThenable.status === 'pending'
) {
this.#currentThenable.reject(
new Error(
'experimental_prefetchInRender feature flag is not enabled',
),
)
}
return Reflect.get(target, key)

@@ -278,0 +284,0 @@ },

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