We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85ee7bb commit 1846404Copy full SHA for 1846404
packages/query-core/src/queryObserver.ts
@@ -505,9 +505,9 @@ export class QueryObserver<
505
} else {
506
placeholderData =
507
typeof options.placeholderData === 'function'
508
- ? (options.placeholderData as PlaceholderDataFunction<TQueryData>)(
509
- prevQueryResult?.data as TQueryData | undefined,
510
- )
+ ? (
+ options.placeholderData as unknown as PlaceholderDataFunction<TQueryData>
+ )(prevQueryResult?.data as TQueryData | undefined)
511
: options.placeholderData
512
if (options.select && typeof placeholderData !== 'undefined') {
513
try {
0 commit comments