haris
Explore posts from serversTTCTheo's Typesafe Cult
•Created by haris on 10/3/2022 in #questions
What's the best way to do real time with T3?
Friends of mine runs it and I have access
6 replies
TTCTheo's Typesafe Cult
•Created by haris on 10/3/2022 in #questions
What's the best way to do real time with T3?
I was considering using https://hop.io
6 replies
TTCTheo's Typesafe Cult
•Created by AdmiralGeneralAladeen on 9/26/2022 in #questions
What's the best way to bulk insert with a many-to-many relationship (posts & categories) in prisma?
18 replies
TTCTheo's Typesafe Cult
•Created by AdmiralGeneralAladeen on 9/26/2022 in #questions
What's the best way to bulk insert with a many-to-many relationship (posts & categories) in prisma?
If you have the schema and etc all done, then just use a createMany, which is a single SQL statement and faster than doing many creates
18 replies
TTCTheo's Typesafe Cult
•Created by AdmiralGeneralAladeen on 9/26/2022 in #questions
What's the best way to bulk insert with a many-to-many relationship (posts & categories) in prisma?
or no
18 replies
TTCTheo's Typesafe Cult
•Created by AdmiralGeneralAladeen on 9/26/2022 in #questions
What's the best way to bulk insert with a many-to-many relationship (posts & categories) in prisma?
do u have a many to many set up in ur prisma schema already
18 replies
TTCTheo's Typesafe Cult
•Created by thejessewinton on 9/18/2022 in #questions
GitHub Action for Linting with Vercel
I would higly recommend just using husky for this, I use it in a couple of my projects as a pre commit hook and it works great
67 replies
TTCTheo's Typesafe Cult
•Created by scatter on 9/18/2022 in #questions
nested push-or-create-array in zustand and immer
This does make sense, but I've never used Immer so no clue if the second thing would work
16 replies
TTCTheo's Typesafe Cult
•Created by scatter on 9/18/2022 in #questions
nested push-or-create-array in zustand and immer
Just woke up sorry
16 replies
TTCTheo's Typesafe Cult
•Created by scatter on 9/18/2022 in #questions
nested push-or-create-array in zustand and immer
Or wait I'm dumb, Map wouldn't work in the way I thought initially
16 replies
TTCTheo's Typesafe Cult
•Created by scatter on 9/18/2022 in #questions
nested push-or-create-array in zustand and immer
Wait is knownPaths an Object or an Array?
16 replies
TTCTheo's Typesafe Cult
•Created by scatter on 9/18/2022 in #questions
nested push-or-create-array in zustand and immer
Would work very well here as you can just do .set iirc, don't have to check if it exists or not to change it
16 replies
TTCTheo's Typesafe Cult
•Created by scatter on 9/18/2022 in #questions
nested push-or-create-array in zustand and immer
Then yeah, I recommend a Map
16 replies
TTCTheo's Typesafe Cult
•Created by scatter on 9/18/2022 in #questions
nested push-or-create-array in zustand and immer
If not I think a Map would work really really well here
16 replies
TTCTheo's Typesafe Cult
•Created by scatter on 9/18/2022 in #questions
nested push-or-create-array in zustand and immer
Do you need any duplicates in this array?
16 replies