Xanacas
Xanacas
TTCTheo's Typesafe Cult
Created by Xanacas on 1/4/2024 in #questions
Typescript bug or am I stupid?
Yes, it must be a scoping thing. However, I'm not using findIndex on latest_charge, but on disputes, so pi.latest_charge doesn't change while looking up my disputes.
4 replies
TTCTheo's Typesafe Cult
Created by Xanacas on 11/5/2023 in #questions
How to get rid of this unnecessary code while preventing eslint from complaining.
"Since find() exists I rarely use findIndex()" I didn't realize, that find create a mutable item whose changes are also reflected in the array. amazing 🙂
6 replies
TTCTheo's Typesafe Cult
Created by Viszy A on 11/5/2023 in #questions
How do I fix this query, I was following a tutorial that doesn't use the t3 stack
+ if you're using a Server-Component in a Clientcomponent, all the data for the Server Component needs to be available on the request. Means you must pass the server component from a server component as a child to the client component. Like this: // server rendered page.tsx ... return <ClientComponent whatEverProps={...someData}> <ServerRenderedChildComponent optionalData={...someData} /> </ClientComponent>
5 replies
TTCTheo's Typesafe Cult
Created by ibamsey on 10/4/2022 in #questions
Multi-tenant - easy no?
prisma has a very early support for different schema https://github.com/prisma/prisma/issues/1122#issuecomment-1231773471
88 replies