Type safe way to access queryData using queryKey.
Right now if i want to access query data, i will do something like this
queryClient.getQueryData(['GetCountries', { code: 'BR' }])
But 'GetCountries' part is something which is not autosuggested, it is a string value, which can lead to potenial errors.
Do we have something like getQueryKey to get key for a query.
Thanks
queryClient.getQueryData(['GetCountries', { code: 'BR' }])
But 'GetCountries' part is something which is not autosuggested, it is a string value, which can lead to potenial errors.
Do we have something like getQueryKey to get key for a query.
Thanks