diff --git a/packages/query-core/src/queryObserver.ts b/packages/query-core/src/queryObserver.ts index 2b4bed1604..04f2b7a88b 100644 --- a/packages/query-core/src/queryObserver.ts +++ b/packages/query-core/src/queryObserver.ts @@ -680,6 +680,9 @@ export class QueryObserver< if (this.options.throwOnError) { includedProps.add('error') } + if (includedProps.has('promise')) { + includedProps.add('data') + } return Object.keys(this.#currentResult).some((key) => { const typedKey = key as keyof QueryObserverResult