batata
batata
TTCTheo's Typesafe Cult
Created by batata on 2/16/2023 in #questions
Next Image Height
but i still dont understand why the height isnt working on the <Image />
14 replies
TTCTheo's Typesafe Cult
Created by batata on 2/16/2023 in #questions
Next Image Height
to the image
14 replies
TTCTheo's Typesafe Cult
Created by batata on 2/16/2023 in #questions
Next Image Height
i added this
className="h-56 w-full object-cover"
className="h-56 w-full object-cover"
14 replies
TTCTheo's Typesafe Cult
Created by batata on 2/16/2023 in #questions
Next Image Height
doesnt make a difference
14 replies
TTCTheo's Typesafe Cult
Created by Wezter on 2/6/2023 in #questions
Conditionally required types
this logic seems off
5 replies
TTCTheo's Typesafe Cult
Created by batata on 2/4/2023 in #questions
tRPC in getServerSideProps
really nice video, i hope you keep publishing content!
9 replies
TTCTheo's Typesafe Cult
Created by batata on 2/4/2023 in #questions
tRPC in getServerSideProps
the video appeared on my feed yesterday, was too lazy to watch it lmao. lesson learned
9 replies
TTCTheo's Typesafe Cult
Created by batata on 2/4/2023 in #questions
tRPC in getServerSideProps
will watch
9 replies
TTCTheo's Typesafe Cult
Created by batata on 2/3/2023 in #questions
trpc useQuery fetch on demand
oh okay, i was trying {manual: true}, thank you!!
3 replies
TTCTheo's Typesafe Cult
Created by .vithis on 1/22/2023 in #questions
Next.js + NextAuth protect all routes
check if there's a session in the server side on the routes you want (why do you want to redirect on all the routes that doesnt make sense), if there's no session redirect to login
8 replies
TTCTheo's Typesafe Cult
Created by batata on 1/22/2023 in #questions
Wait for useQuery result
will read it! thank youu
19 replies
TTCTheo's Typesafe Cult
Created by batata on 1/22/2023 in #questions
Wait for useQuery result
yeah thats what i thought, didnt like that i used the useEffect
19 replies
TTCTheo's Typesafe Cult
Created by batata on 1/22/2023 in #questions
Wait for useQuery result
ohh cool didnt know i could do this
19 replies
TTCTheo's Typesafe Cult
Created by batata on 1/22/2023 in #questions
Wait for useQuery result
and this is the state
const [favorite, setFavorite] = useState(false)
const [favorite, setFavorite] = useState(false)
19 replies
TTCTheo's Typesafe Cult
Created by batata on 1/22/2023 in #questions
Wait for useQuery result
so i need to wait for the status to be success thats how you know the query finished executing
19 replies
TTCTheo's Typesafe Cult
Created by batata on 1/22/2023 in #questions
Wait for useQuery result
i used useEffect
useEffect(() => {
if (favShop.status === 'success') {
setFavorite(favShop.data?.length !== 0 ? true : false)
}
}, [favShop.data])
useEffect(() => {
if (favShop.status === 'success') {
setFavorite(favShop.data?.length !== 0 ? true : false)
}
}, [favShop.data])
19 replies
TTCTheo's Typesafe Cult
Created by batata on 1/22/2023 in #questions
Wait for useQuery result
no im not storing the data in a state, in just checking if the object is empty or not.
19 replies
TTCTheo's Typesafe Cult
Created by batata on 1/22/2023 in #questions
Wait for useQuery result
i only wanna call the procedure on the first load
19 replies
TTCTheo's Typesafe Cult
Created by batata on 1/22/2023 in #questions
Wait for useQuery result
im using the state for later
19 replies