nimeshvaghasiya
Explore posts from serversTTCTheo's Typesafe Cult
•Created by nimeshvaghasiya on 5/13/2023 in #questions
create-t3-turbo monorepo: How to access user session to packages/db?
I would like to access some props from user's session to prisma middleware
i.e. in below example: I would like to get contextLanguage from user's session (nextauth).
adding @acme/auth as a dependency to @acme/db package, may create circular dependency?
https://www.prisma.io/docs/concepts/components/prisma-client/middleware/session-data-middleware
1 replies
TTCTheo's Typesafe Cult
•Created by nimeshvaghasiya on 1/16/2023 in #questions
error - ReferenceError: Cannot access 'createTRPCRouter' before initialization
Anyone ever experience an error as in title of this Q.
src\server\api\root.ts
If you change import order and move roleRouter import at top, it will throw error at roleRouter in below error description.
Error Description:
20 replies
TTCTheo's Typesafe Cult
•Created by nimeshvaghasiya on 12/13/2022 in #questions
Should you share zod schema from server side to client side?
I have a zod schema which is used to validate trpc router procedure on server, and I need same schema to validate input on client side form,
so, is there any security threat, if I import that server schema on client component?
9 replies
TTCTheo's Typesafe Cult
•Created by nimeshvaghasiya on 11/10/2022 in #questions
Next 13 - App Directory feature and tRPC
Is there any pre-release version of create-t3-app which has been updated to App Directory feature and also updated tRPC accordingly?
15 replies