-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Types issue with useQueries #3483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Heya, had a look, added a PR to fix. Wasn't so much react-18 related; previously it had been correctly getting the |
Btw, I noticed something else along the way. My understanding from reading your other issue is that you want to warn with a type error anytime I think at the moment ( Errors as expected // @ts-expect-error
useQuery(key, () => undefined) This doesn't complain useQuery(key, async () => undefined) Happy to look into it later unless that's intentional |
oh yes good catch. |
just to be sure, @artysidorenko, the from what I can see:
should I create a separate issue for that? |
Indeed, it wasn't fixed in #3493 , planning to look into it next. If it helps from a tracking pov, can use a separate issue, sure. |
follow up created: #3516 |
useQueries type includes
Promise
in the inferred type of.data
, which is not renderable asReact.ReactNode
with the new react 18 typings.failing test on
beta
:fails with:
@artysidorenko could you take a look at this please?
The text was updated successfully, but these errors were encountered: