Skip to content
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

Types not propagating from hooks #35

Open
Greg-Freeman opened this issue Sep 26, 2024 · 1 comment
Open

Types not propagating from hooks #35

Greg-Freeman opened this issue Sep 26, 2024 · 1 comment

Comments

@Greg-Freeman
Copy link

I will post a screenshot here because it's easier to show the error I am getting. But it seems that for some reason I'm linking to react-query legacy types. And then it's showing me the definition of those types is "Any." so i can't destructure any objects using intellisense.

Here is the image showing a very basic login function

image

And if i go look at the definition of the return type it's the following:
image

For some reason UseMutationResult = any which is why i'm getting nothing type related. Please let me know if this is an issue on the react-query package side

@Alletkla
Copy link

Hey all,
i was also searching the net due to this error. I think this issues in another library are "related":
psteinroe/supabase-cache-helpers#401
psteinroe/supabase-cache-helpers#405

where bumping Typescript from 5.3.X to 5.4.2:
psteinroe/supabase-cache-helpers#406

solved the issue.

Since react-query-auth is still on typescript major 4.X here maybe this isn't as easy of a fix as it was there.
Hope this helps. Would really appreciate a fix, since I'm not that experienced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants