bulletproof-react icon indicating copy to clipboard operation
bulletproof-react copied to clipboard

Using a `select` function with hooks gives type errors

Open Xhale1 opened this issue 1 year ago • 3 comments

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.

Xhale1 avatar Oct 11 '24 05:10 Xhale1

Hey @alan2207, can I look into this?

adiig7 avatar Oct 12 '24 06:10 adiig7

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

alan2207 avatar Oct 13 '24 18:10 alan2207

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

Xhale1 avatar Oct 15 '24 03:10 Xhale1