Replies: 3 comments
-
I think this would be awesome 😎 , not sure if there is a reason to not have the status property discriminate the data / error fields. It would give me another argument to use the status field over loading booleans :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
@boschni pointed out some time ago that the discriminating unions have been removed: |
Beta Was this translation helpful? Give feedback.
0 replies
-
I don't understand the argument though. I created a PR to add them back, #1108 . Maybe we can continue the discussion there. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To fully take advantage of typescript, it would be nice if the return type of
useQuery
would be a discriminating union.Has this been discussed, are there any concerns about this? I could potentially look into providing a PR.
This probably applies to the other hooks too.
Beta Was this translation helpful? Give feedback.
All reactions