zilahir
zilahir
TTCTheo's Typesafe Cult
Created by zilahir on 10/29/2023 in #questions
ct3a with `react-query`
yep! thank you sir!
19 replies
TTCTheo's Typesafe Cult
Created by zilahir on 10/29/2023 in #questions
ct3a with `react-query`
i forgot about this completely 🙈
19 replies
TTCTheo's Typesafe Cult
Created by zilahir on 10/29/2023 in #questions
ct3a with `react-query`
so yeah, thats it
19 replies
TTCTheo's Typesafe Cult
Created by zilahir on 10/29/2023 in #questions
ct3a with `react-query`
ohh yeah, i think thats going to be it. ive been just trying within the src/app/page.tsx from the ct3a template
19 replies
TTCTheo's Typesafe Cult
Created by zilahir on 10/29/2023 in #questions
ct3a with `react-query`
i am assuming based on the docs, that this (from the template) should work:
const latestPost = await api.post.getLatest.useQuery();
const latestPost = await api.post.getLatest.useQuery();
but only the query fn exists on the getLatest
19 replies
TTCTheo's Typesafe Cult
Created by zilahir on 10/29/2023 in #questions
ct3a with `react-query`
and i am readong now the corresponding trpc docs, and it looks like the setup on my end is ok too
19 replies
TTCTheo's Typesafe Cult
Created by zilahir on 10/29/2023 in #questions
ct3a with `react-query`
with the useQuery fn, it doesnt.
19 replies
TTCTheo's Typesafe Cult
Created by zilahir on 10/29/2023 in #questions
ct3a with `react-query`
yep, i did, if i call it like this:
const thisUser = await api.user.getUser.query()
const thisUser = await api.user.getUser.query()
it works.
19 replies