DivMode
Explore posts from serversTTCTheo's Typesafe Cult
•Created by DivMode on 8/24/2023 in #questions
Zod not returning undefined
I have this but it looks like zod has a problem returning undefined. I use prisma and I want it to do nothing which prisma does when value is undefined.
But get this error
16 replies
TTCTheo's Typesafe Cult
•Created by DivMode on 7/11/2023 in #questions
prefetchInfinite not working when inputs are different from useInfinite
Ive been trying to figure out why prefetching doesnt work when the inputs are different between prefetchinfinite and infinitequery. Its works great when the inputs are the same. Hoping someone can shed some light on this.
2 replies
TTCTheo's Typesafe Cult
•Created by DivMode on 7/6/2023 in #questions
Regex cutting off anything after space in the url
Heres the current regex :
const regex = /(https?://\S+)\s\n\s(Canonical|\d)/g;
it gives back: "http://www.stjosephnewwaverlytx.net/Religious"
want it to give me the full url: "http://www.stjosephnewwaverlytx.net/Religious" +
" Education/Teachers and Staff/Lessons/Misc/Sacraments.jpg
Tried for a couple of hours to get it working but with no luck. Any help would be appreciated. Thanks!
5 replies
TTCTheo's Typesafe Cult
•Created by DivMode on 3/8/2023 in #questions
prefetchInfinite causing query on initial load
I am prefetching the data in getStaticProps and it fetches on initial load even with staletime set to infinity. https://www.loom.com/share/454e3d2b75fa426d923e119775d1086c
4 replies
TTCTheo's Typesafe Cult
•Created by DivMode on 11/1/2022 in #questions
No longer able to set background images in css with nextjs 13?
3 replies