I am working on a react native app that is using openapi-react-query in order to enforce the type safety across backend and mobile, my struggle is how to refetch queries (in a component other than the one where the query is defined) using this tool, as this action is pretty straightforward when using the @tanstack/react-query by using the query client and refetch/invalidate queries by their keys, but in my case I haven't the option to define a key for the queries and the queryHash doesn't seem to be working in this specific case.
Any help is appreciated!
This is an example of a query:
return $api.useQuery(
'get',
'/profile',
{},
{
queryHash: QUERY_KEYS.GET_USER_DETAILS,
staleTime: FIFTEEN_SECONDS_IN_MS,
},