Skip to content

Commit 7031be3

Browse files
committed
fix: implement getCurrentThrowableError for InfiniteQuery
1 parent 071dda0 commit 7031be3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/inifinite-query.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,11 @@ export class InfiniteQuery<
504504
return Query.prototype.createQueryHash.call(this, queryKey, options);
505505
}
506506

507+
protected getCurrentThrowableError(options?: RefetchOptions) {
508+
// @ts-expect-error
509+
return Query.prototype.getCurrentThrowableError.call(this, options);
510+
}
511+
507512
setData(
508513
updater: Updater<
509514
NoInfer<InfiniteData<TQueryFnData, TPageParam>> | undefined,

0 commit comments

Comments
 (0)