Closed kouts closed 1 year ago
Thanks for this great library. I have a question regarding the usage of useQuery with a transform function. I'm using it like this:
useQuery
<script setup lang="ts"> const { $client } = useNuxtApp() const { data, pending } = await $client.admin.getContent.useQuery(undefined, { lazy: true, transform(value) { return value } }) </script>
but I get a Typescript error on the transform function
what am I missing?
It's been a while and I hope you have solved your issue, but I think it should be
transform: (value) => { return value }
Thanks @mlbiche
Thanks for this great library. I have a question regarding the usage of
useQuery
with a transform function. I'm using it like this:but I get a Typescript error on the transform function
what am I missing?