Is putting the session into the context really a good idea? (overhead on each request)
I was just wondering about the default way of session handling.
Looking at the docs, the session is put into the context:
```ts
// server/trpc/context.ts...
basic js logic question
I have x2 arrays:
QuestBotGuildIds = an array of Id’s from my db.
UserGuilds = an array basic guild information for every guild.
...
Module augmentation - Typesafe Electron IPC
Hey 👋
I want to extend the
Electron type definitions to make the channels for IPC communication more typesafe. For this, I'll need to override the types of the class BrowserWindow. Only the types, the underlying JavaScript will be the same.
The problem is, I can't figure out how to override the electron module type defintions without running into Duplicate identifier or Cannot redeclare block-scoped variable....Xata can be a good alternative to Planetscale Serverless?
Planescale is a serverless database recommended in the t3stack docs. Xata codegen seems like giving better generator of database code than prisma, also allow table relations thing that Planetscale don't allow, and have integrate search and analytics functionality. Does anyone know a comparison between these two serverless databases? Xata pricing is cheap? Xata is ready for production or we should wait a few months first?
tRPC and existing api
Hello, I have external API that I use on my project. I need to hide my api key so I need to create api routes as wrapper (to run serverside). Could I just use trpc for it instead of the normal api route way on nextjs? So on trpc get external api and return result and client fetches from trpc
tRPC, query invalidation is not working
This is the code I have inside the component
` const utils = trpc.useContext()
const students = trpc.student.getAll.useQuery()
const addStudentTRPC = trpc.student.add.useMutation({
onSuccess() {...
tRPC Procedure based cache
Is there a way to set the cache request length depending on the procedure instead of a global amount? I can't seem to figure it out.
CMS with a editor which business experts understand
I am looking for some recommendations regarding CMS to include into a next based website to empower the client to do some edits to the content itself. There seem so be a lot of competing products in this space, of which meany a re pretty similar.
How to re-run a function in Server components on navigation to get fresh data?
Anyone know how to make sure async functions in the server components rerun when navigated to? They’re only being called on first mount currently. When you link back to a page.js server component the async data function doesn’t rerun. Using app directory in NextJS 13
Reducer Sets Wrong State When React's Strict Mode is Enabled
Anyone know what's going on with my reducer? https://stackoverflow.com/questions/74463125/reducer-sets-wrong-state-when-reacts-strict-mode-is-enabled
Achieving Best Web Vitals [Performance Side].
I am looking for mental models / best practices when buidling web apps that have the best web vitals
I am more interested in the Performance side. i.e FCP, Total Blocking Time, Speed Index, and Largest Contentful Paint....
UseEffect Order
If I have multiple use effects (one with empty dep array, one to run on every rerendeer, etc), is the order they run in just the order they're written in?
T3 Stack Prisma, tRPC error - data.id is missing
So I am trying to learn the techs in the T3 stack, and I encountered a weird problem.
Error:
Invalid
prisma.dailyActivity.create() invocation: { data: { name: 'asd', timeSpent: 'asd', + id: String } } Argument id for data.id is missing. Note: Lines with + are required...Noob Q - Prisma date property
does anyone have experience with prisma, i have a user object i'm sending to my backend and i want prisma to set the date property automatically for me, but is asking me to provide a date property

Does parsed data improve speed
Hello, let's say I parse data this way. Does it make my website faster / lighter when I use this query in the frontend, because I return just the stuff I want?
```const PokemonResult = z.object({
forms: z.array(z.object({
name: z.string(),
url: z.string(),...
CAS with nextAuth
I have tremendous problem wrapping my head around this. My University is using CAS as authentication provider and I want to use it with NextAuth as Social Login. Does anyone have any idea how can I implement it? I'm pretty blue about authentication systems and I can't figure where to even start.
Prisma feel like it leads to bad code design patterns
I’ve been learning and working with Prisma as I rewrite a project of mine in Typescript and one thing really stood out to me with it, it’s really easy to create complex queries and create / modify data from multiple places
Quick example, users can change settings in my project, that has the potential to happen from multiple places and if I made each one of those it’s own Prisma call with update, then if I ever wanted to add analytics to settings changes I’d have to go to each place and put an event listener
The way I’ve set up Prisma in my project is similar to how Discord JS handles their interactions, with managers and structures ...