Data coming back as undefined in T3 Stack Tutorial

I'm following the T3 tutorial and am having trouble with getting the tRPC query to resolve. I followed the tutorial up until ~26 min where I am trying to render the posts from the prisma database but data keeps coming back as undefined. And when I destructure isLoading as well, that is always true so it seems like it never finishes loading the query. const { data, isLoading } = api.posts.getAll.useQuery(); Anyone else run into this issue when following the tut? I have no clue what to do to fix it? Do I just move on and hope future code in the tutorial fixes the issue?
4 Replies
bcavs
bcavsOP2y ago
I actually rolled my deployment all the way back to the first initialization deploy where it's supposed to say "Hello from tRPC!" but it looks like it's been stuck on loading even from then. Has something changed that would make create t3 app not work or is this a local problem?
bcavs
bcavsOP2y ago
bcavs
bcavsOP2y ago
Turns out it was my Chrome the entire time... that's quite frustrating to find out after all that debugging...
deathandtaxes
deathandtaxes2y ago
This might be weird, but one of two things fixed this issue for me: - Unistalled this extension https://schema.dev/schema-builder/ that I installed over the weekend - Restarted my macbook Either way, it's working as usual now...
schemaprod
Schema Markup Generator, Tester, Deployer
Schema Markup Generator - Schema.dev
Generate Schema markup for your website with Schema.dev plugin. Easy to install and start generating structured data in a minute, No technical experience needed!
Want results from more Discord servers?
Add your server