You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
in the Vue TypeScript section for type-narrowing (Link) the linked TypeScript Playground (Link) shows an error for the passed argument to useQuery.
In the corresponding TypeScript Playground for react (Link) there is no error.
Should the docs be changed such that the adjusted example for vue-query is linked?
Also, why does the same syntax not show an error for react-query, even if both useQuery-methods have the same API?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
in the Vue TypeScript section for type-narrowing (Link) the linked TypeScript Playground (Link) shows an error for the passed argument to
useQuery
.In the corresponding TypeScript Playground for react (Link) there is no error.
When passing queryKey and queryFn as the API definition suggests (Link), the TypeScript Playground shows no errors (Link to adjusted Playground Example).
Should the docs be changed such that the adjusted example for vue-query is linked?
Also, why does the same syntax not show an error for react-query, even if both
useQuery
-methods have the same API?Beta Was this translation helpful? Give feedback.
All reactions