-
Notifications
You must be signed in to change notification settings - Fork 32
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
Typing: staleTime not available as prop in static query #83
Comments
@Dammic not sure if you've figured this out by now, but the typings are misleading either way - helper functions of This can be seen in the implementation: query-key-factory/src/create-query-keys.ts Lines 55 to 58 in e110092
@lukemorales I think this behavior should be documented, or support added for all other |
@gomesalexandre the behavior is documented, there are no examples with options other than |
While the major version is still not out there, I released v1.1.3 that makes the object returned in a dynamic query super strict to the only expected keys. Hope that prevents any future confusion |
That was super fast @lukemorales, thank you! 👑 |
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:Is this behaviour intended? I would assume the props should be similar in both cases.
Thanks in advance for reply!
The text was updated successfully, but these errors were encountered: