LuisLl
Explore posts from serversTTCTheo's Typesafe Cult
•Created by LuisLl on 3/7/2025 in #questions
How to run drizzle migrations before Next build when running on Docker?
No, the database is not the problem, the time where migrations actually are applied seem to be. But maybe it’s not a problem at all and it’s a skill issue, which tbh might be since I’m fairly new to docker
7 replies
TTCTheo's Typesafe Cult
•Created by LuisLl on 3/7/2025 in #questions
How to run drizzle migrations before Next build when running on Docker?
Yes that works, because that API is external and always up and running out of my containers.
7 replies
TTCTheo's Typesafe Cult
•Created by LuisLl on 3/7/2025 in #questions
How to run drizzle migrations before Next build when running on Docker?
These are the important files (Dockerfile, compose.yaml, .env, etc...), my app works correctly and database is up, with the corresponding migrations when I visit my deployed app. But pages that access my database runnig on the contaner needed to be turned dynamic. I would appreciate any advice, solution or roast, I'll learn from whatever you give me.
7 replies
TTCTheo's Typesafe Cult
•Created by AshiBoyMan on 2/28/2025 in #questions
Http cookies in next
If it’s dynamic it means it has access to request-time data
13 replies
TTCTheo's Typesafe Cult
•Created by AshiBoyMan on 2/28/2025 in #questions
Http cookies in next
Is the page marked as dynamic?
13 replies
TTCTheo's Typesafe Cult
•Created by AshiBoyMan on 2/28/2025 in #questions
Http cookies in next
What’s your Next.js version?
I ask because in Next 15 cookies return a promise and need to be awaited.
I would have thought you’d be able to access cookies and read them on the server as long as the page is dynamically rendered when the user requests it, since the user is requesting it from the client then the server has the cookies the user sent.
13 replies
TTCTheo's Typesafe Cult
•Created by LuisLl on 2/16/2025 in #questions
What is Theo using to highlight the Date of the commits on GitHub depending on how recent they are?
The extension is called “Refined GitHub”
10 replies
TTCTheo's Typesafe Cult
•Created by LuisLl on 2/16/2025 in #questions
What is Theo using to highlight the Date of the commits on GitHub depending on how recent they are?
I found it
10 replies
TTCTheo's Typesafe Cult
•Created by LuisLl on 2/16/2025 in #questions
What is Theo using to highlight the Date of the commits on GitHub depending on how recent they are?
I don’t think that’s the one tho
10 replies
TTCTheo's Typesafe Cult
•Created by LuisLl on 2/16/2025 in #questions
What is Theo using to highlight the Date of the commits on GitHub depending on how recent they are?

10 replies
TTCTheo's Typesafe Cult
•Created by rexxar07 on 1/20/2025 in #questions
Software Engineer resources and groups
The Next.js discord community is very active and it’s great
10 replies
TTCTheo's Typesafe Cult
•Created by BadBoy on 1/13/2025 in #questions
useQuery or useMutation?
Oh my bad, I didn’t mean it as an actual solution for local storage, I was just trying to say that as long as you pass an async function to React Query it doesn’t care what it is
10 replies
TTCTheo's Typesafe Cult
•Created by BadBoy on 1/13/2025 in #questions
useQuery or useMutation?
That way you don’t pull the whole conversation over and over again, just the last 2 that are needed
10 replies
TTCTheo's Typesafe Cult
•Created by BadBoy on 1/13/2025 in #questions
useQuery or useMutation?
Even if they’re stored in local storage it doesn’t matter to React Query, it just needs an async function to track.
I would do that too, useQuery to get the messages and every time I send a new message that’ll be a useMutation “mutate” fn and I’ll override the messages on onMutate to incluye my message before you I get a response back from the server, then onSuccess trigger an invalidation in to make the query trigger again.
I believe there’s a way you can make the useQuery only take the last 2 messages that will be the one you sent (and optimistically showed on the UI via onMutation) and the one from the server. Maybe infinite query not sure, but might work
10 replies
TTCTheo's Typesafe Cult
•Created by shadax on 1/12/2025 in #questions
CSR, SSR or server components?
Even if you use “use client” in 95% of your components you’re effectively still routing through Next.js router, provoking pages to render on the server before switching to them (when they’re not static), and also the next.js Link component prefetches all routes that are visible in the viewport under the hood
9 replies
TTCTheo's Typesafe Cult
•Created by shadax on 1/12/2025 in #questions
CSR, SSR or server components?
Yes, I the RR7 routing system does not trigger server requests when navigating through “client side routes” because they’re only ever running on the client, also the whole core app requires client side interaction, so it makes sense
9 replies
TTCTheo's Typesafe Cult
•Created by I'm Not An Engineer on 1/11/2025 in #questions
What's t3?
I believe T3 stack was originally created to solve the problems he was having with building ping.gg, it did well so he shared with the community.
It’s just a matter of preference. Also, Astro makes use of JSK like syntax.. just saying.
3 replies
TTCTheo's Typesafe Cult
•Created by Oudwin on 1/5/2025 in #questions
LF Video where Theo talks about using react query for ping
With that, you could show some UI while the devices are connecting, then show a toast if the connection completed correctly or failed.
8 replies
TTCTheo's Typesafe Cult
•Created by Oudwin on 1/5/2025 in #questions
LF Video where Theo talks about using react query for ping
Yes that’s true, as long as you pass an async function you’re good, whatever that async function does won’t matter to React Query.
Just by doing that now you have control over the lifecycle of the async function by appending methods (onMutate, onSuccess, onError, onSettled) and the state by just calling the hook in your component
8 replies