query-key-factory icon indicating copy to clipboard operation
query-key-factory copied to clipboard

Typing: staleTime not available as prop in static query

Open Dammic opened this issue 1 year ago • 4 comments

Hello!

I ran into a small issue when trying to use the library. It seems that the staleTime is not available in types when using a static query without any queryKey, while it works just fine when the query is dynamic:

Screenshot 2024-01-18 at 13 18 01 Screenshot 2024-01-18 at 13 18 38

Is this behaviour intended? I would assume the props should be similar in both cases. Thanks in advance for reply!

Dammic avatar Jan 18 '24 12:01 Dammic