Skip to content

Commit 0d22f9a

Browse files
committed
fix: ts 4.7 error
1 parent 85ee7bb commit 0d22f9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/query-core/src/queryObserver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ export class QueryObserver<
505505
} else {
506506
placeholderData =
507507
typeof options.placeholderData === 'function'
508-
? (options.placeholderData as PlaceholderDataFunction<TQueryData>)(
508+
? (options.placeholderData as unknown as PlaceholderDataFunction<TQueryData>)(
509509
prevQueryResult?.data as TQueryData | undefined,
510510
)
511511
: options.placeholderData

0 commit comments

Comments
 (0)