Jonathan.Alphonso
Jonathan.Alphonso
TTCTheo's Typesafe Cult
Created by DraganovicDr on 11/27/2023 in #questions
Seeking Advice for a T3 Stack Application: Separating tRPC from NextJS
For anyone looking for solutions here. You may want to try exposing your trpc procedures as rest endpoints. https://create.t3.gg/en/usage/trpc#exposing-every-procedure-as-a-rest-endpoint
14 replies
TTCTheo's Typesafe Cult
Created by Jonathan.Alphonso on 11/5/2023 in #questions
Unwanted Re-renders with Custom Hook in Next.js (T3)
Fixed it. The useStories hook was being loading on the page, and on an imported component. Also a bunch of state duplication, I lifted up state to the page level and passed it down through props. Also my hook didn't account for pages when pulling allStories.... lots of sloppy code, and lots of learning. Its all good now.
8 replies
TTCTheo's Typesafe Cult
Created by Jonathan.Alphonso on 11/5/2023 in #questions
Unwanted Re-renders with Custom Hook in Next.js (T3)
I had to revert a few commits, where it was working a bit better. The initial loading spinner is causing an additional fetch. trying to figure out why
8 replies
TTCTheo's Typesafe Cult
Created by Jonathan.Alphonso on 11/5/2023 in #questions
Unwanted Re-renders with Custom Hook in Next.js (T3)
I don't think its strict mode. The app on vercel has the same issue, you can see double requests in the network tab. I tested it locally and disabled strict mode and still have issues. It might be that I have a lot of state updates. I have the user session that loads and the API that fetches stories. I think its updating after these bits of data are loaded.... still working on it
8 replies
TTCTheo's Typesafe Cult
Created by Jonathan.Alphonso on 8/8/2023 in #questions
running vercel edge api functions?
Is there a way to pick only specific functions to run on edge?
8 replies
TTCTheo's Typesafe Cult
Created by Jonathan.Alphonso on 8/8/2023 in #questions
running vercel edge api functions?
Pages router
8 replies