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

Using a select function with hooks gives type errors #216

Open
Xhale1 opened this issue Oct 11, 2024 · 3 comments
Open

Using a select function with hooks gives type errors #216

Xhale1 opened this issue Oct 11, 2024 · 3 comments

Comments

@Xhale1
Copy link

Xhale1 commented Oct 11, 2024

If I try to use react query's select feature with one of the wrapped useQuery's in this repo, I get a type error specifying a mismatch between the returned type from select and the returned type of the useQuery hook.

@adiig7
Copy link

adiig7 commented Oct 12, 2024

Hey @alan2207, can I look into this?

@alan2207
Copy link
Owner

@adiig7 that would be great, go ahead! :)

@Xhale1
Copy link
Author

Xhale1 commented Oct 15, 2024

Thanks for checking this! I spent a bit of time trying to tweak some types but I haven't been able to crack it yet

Let me know if you're unable to reproduce the issue, I'm happy to clone the repo and make a brief demo

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

3 participants