supabase-cache-helpers icon indicating copy to clipboard operation
supabase-cache-helpers copied to clipboard

useQuery can't passing type

Open rindev0901 opened this issue 8 months ago • 6 comments

Image

Data type was there before but now all queries have become any

rindev0901 avatar Apr 25 '25 13:04 rindev0901

why do you pass a generic parameter to useQuery?

psteinroe avatar Apr 25 '25 13:04 psteinroe

@psteinroe So how can I define the data type for the query without casting?

rindev0901 avatar Apr 25 '25 14:04 rindev0901

It's automatically derived. No need to manually define it :)

psteinroe avatar Apr 25 '25 15:04 psteinroe

@psteinroe why when i delete it still get any

rindev0901 avatar Apr 25 '25 15:04 rindev0901

Can you provide a full repro?

psteinroe avatar Apr 25 '25 15:04 psteinroe

@psteinroe yes sure u can see this here: https://github.com/rindev0901/cycle-store-fe

rindev0901 avatar Apr 25 '25 15:04 rindev0901