sheng2808
TTCTheo's Typesafe Cult
•Created by sheng2808 on 6/20/2023 in #questions
Prisma Transaction not executing properly in a Production environment
I have a Heavy Prisma transaction that skips the Promise.all portion in production in other computers but works find on my laptop in production. what is the issue?
2 replies
TTCTheo's Typesafe Cult
•Created by sheng2808 on 5/28/2023 in #questions
Should we still be using react hook form in nextjs 13?
As the title says, should we be using react hook form in nextjs 13? or should we just create html style forms ? what's the pros and cons of each?
Personally i'm running into CSS rendering issues while using Tailwind with react hook forms in nextjs 13 app dir and looking at how the official nextjs 13 form example makes me reconsider using react hook form
7 replies
TTCTheo's Typesafe Cult
•Created by sheng2808 on 5/4/2023 in #questions
turbo repo built lint error
![](https://utfs.io/f/5e708783-010e-4c98-82a2-45d27b65d6cc-1nq2cb.png)
2 replies
TTCTheo's Typesafe Cult
•Created by sheng2808 on 2/13/2023 in #questions
react-hooks/exhaustive-deps issue
![](https://utfs.io/f/cf5e84b2-3b34-4926-8d4e-bcf2c2d86083-1nq2cb.png)
16 replies
TTCTheo's Typesafe Cult
•Created by sheng2808 on 11/26/2022 in #questions
Tanstack tables giving errors during deployment on vercel?
![](https://utfs.io/f/ae86673f-a3da-4ce2-a4d9-e11918b77353-1nq2cb.png)
9 replies
TTCTheo's Typesafe Cult
•Created by sheng2808 on 11/15/2022 in #questions
What's wrong with my Next Auth and Layout code
import type { ReactElement, ReactNode } from 'react'
import type { NextPage } from 'next'
import { type AppType, type AppProps } from "next/app";
import { type Session } from "next-auth";
import { SessionProvider } from "next-auth/react";
import { trpc } from "../utils/trpc";
import "../styles/globals.css";
export type NextPageWithLayout<P = {}, IP = P> = NextPage<P, IP> & {
getLayout?: (page: ReactElement) => ReactNode
}
type AppPropsWithLayout = AppProps & {
Component: NextPageWithLayout
}
const MyApp: AppType<{ session: Session | null }> = ({
Component, pageProps: { session, ...pageProps }
}: AppPropsWithLayout) => {
const getLayout = Component.getLayout ?? ((page) => page)
return (
getLayout(<SessionProvider session={session}>
<Component {...pageProps} />
</SessionProvider>)
);
};
export default trpc.withTRPC(MyApp);
12 replies
TTCTheo's Typesafe Cult
•Created by sheng2808 on 11/2/2022 in #questions
does trpc support prisma transactions?
I'm trying to run a $transaction() on TRPC router according to T3 app configs, but I need some help figuring out where to start. Also, can an object be mapped to the Prisma update function? I'm updating the number of products sold in a receipt, but I need help thinking of a good way to do it. Thank you so much for your attention and participation.
21 replies