riolly
riolly
TTCTheo's Typesafe Cult
Created by packofm&ms on 4/15/2023 in #questions
Want all records to be deleted given a specified datetime
Like that @jingleberry? This new to me. Thanks by the way.
12 replies
TTCTheo's Typesafe Cult
Created by packofm&ms on 4/15/2023 in #questions
Want all records to be deleted given a specified datetime
We can write the event in raw query and then use prisma $queryRaw to execute it. https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access Here is the example to create event in SQL: https://www.mysqltutorial.org/mysql-triggers/working-mysql-scheduled-event/
12 replies
TTCTheo's Typesafe Cult
Created by shikishikichangchang on 4/15/2023 in #questions
Ideal UI behaviour for tables on mobile
Agree. As much as we can shrink it, there is still not enough room if you have 5+ columns. Better make it horizontally scrollable on mobile.
10 replies
TTCTheo's Typesafe Cult
Created by packofm&ms on 4/15/2023 in #questions
Want all records to be deleted given a specified datetime
If you are using Prisma, I don't think using TTL is possible for now. Correct me if I'm wrong. https://github.com/prisma/prisma/issues/5430
12 replies
TTCTheo's Typesafe Cult
Created by CamBlackwood on 4/14/2023 in #questions
Best Way to Handle Rich Text Input in a NextJS app?
Cool 😎
8 replies
TTCTheo's Typesafe Cult
Created by CamBlackwood on 4/14/2023 in #questions
Best Way to Handle Rich Text Input in a NextJS app?
I recommend titap https://tiptap.dev/ The plugins system is very convenient. Just install what you need. And very easy to configure. What you need to do is just styling it.
8 replies
TTCTheo's Typesafe Cult
Created by parapheen on 4/14/2023 in #questions
How to inject dynamic meta tags with Next-Seo
You can use server-side helper instead of ssr:true just as it's mentioned on the docs https://trpc.io/docs/nextjs/ssr Pre-fetch your data and then just add to your <Head> component. Follow these: https://trpc.io/docs/nextjs/server-side-helpers https://nextjs.org/docs/api-reference/next/head
4 replies
TTCTheo's Typesafe Cult
Created by packofm&ms on 4/15/2023 in #questions
Want all records to be deleted given a specified datetime
If you use upstash as theo recommend, you can use their qstash feature (for scheduled task) https://docs.upstash.com/qstash
12 replies
TTCTheo's Typesafe Cult
Created by shikishikichangchang on 4/15/2023 in #questions
Ideal UI behaviour for tables on mobile
What do you mean by tables behaviour? I recommend using headless library like tanstack tables https://react-table-v7.tanstack.com/docs/overview and use responsive styling with tailwind
10 replies
TTCTheo's Typesafe Cult
Created by juguerox on 4/14/2023 in #questions
I want to create and download multiple pdfs
Never handle that case before. Just in case you don't find a workaround, you could send the user input to the server, generate that pdf there, and send the generated pdf to the client to download/ preview.
7 replies
TTCTheo's Typesafe Cult
Created by juguerox on 4/14/2023 in #questions
I want to create and download multiple pdfs
If you generate pdf with a data from your database (without client input), better to handle it on the backend.
7 replies
TTCTheo's Typesafe Cult
Created by josh-dev627 on 4/13/2023 in #questions
Workflow with Planetscale
You develop (make changes) on a separate branch, review, approve, and merge to production when it's ready to deploy.
10 replies
TTCTheo's Typesafe Cult
Created by josh-dev627 on 4/13/2023 in #questions
Workflow with Planetscale
Planetscale is like github but for your database
10 replies
TTCTheo's Typesafe Cult
Created by TheJhonny on 4/7/2023 in #questions
Tailwind or Chakra?
Around four months ago I move away from chakra because it's bundle size. They include framer-motion by default. And the syntax it's not for me.
45 replies