mattz
mattz
TTCTheo's Typesafe Cult
Created by mattz on 1/7/2024 in #questions
ssg with app router
export const dynamic = "force-dynamic" this work for me to. But, i feel very strange with that. Because this tell to render dynamic, and i want ssg :x So, i don't know what' s really happening
38 replies
TTCTheo's Typesafe Cult
Created by KO on 1/13/2024 in #questions
Theo uses api.posts.getAll.useQuery() in T3 tutorial video, but T3 app only has .query() calls.
If you import api from trpc/react, you will have access to useQuery because it functions as a client component, utilizing React Query. In the case of a server component, you would import api from trpc/server and use .query() as a promise.
18 replies
TTCTheo's Typesafe Cult
Created by mattz on 1/7/2024 in #questions
ssg with app router
So, export const dynamic = "force-dynamic" really takes off the error. But, the static page it's being really render static? I have that doubt
38 replies