-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Description
Describe the bug
When I am using queryOptions helper type of error erased and becomes unknown
Your minimal, reproducible example
https://stackblitz.com/edit/tanstack-query-shfzdsbz?file=src%2Findex.tsx
Steps to reproduce
see example above
Expected behavior
query.error type does not get erased
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
all
Tanstack Query adapter
solid-query
TanStack Query version
5.62.8
TypeScript version
Version 5.6.3
Additional context
Looks like an easy fix: just change TError=unknown to TError = DefaultError in /solid-query/src/queryOptions.ts, but I am no TS expert and maybe the problem is deeper
Metadata
Metadata
Assignees
Labels
No labels