-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed as not planned
Labels
Description
Describe the bug
According to useSuspenseQuery's docs:
statusis alwayssuccess
But the type for status is "error" | "success". It should be "success" only.
Your minimal, reproducible example
Steps to reproduce
- Invoke
useSuspenseQuery - Verify the type of the
statusproperty
Expected behavior
As a user, I expected the type of status for useSuspenseQuery to be "success", but I am seeing "error" | "success"
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
- OS: macOS
- Browser: Arc (Chromium)
- Version: 1.89.0 (135.0.7049.42)
Tanstack Query adapter
react-query
TanStack Query version
v5.72.2
TypeScript version
v5.8.3
Additional context
No response