usmanabdurrehman
TTCTheo's Typesafe Cult
•Created by Mugetsu on 10/8/2024 in #questions
React context in Server Component Page
because React Context is a Client thing? Its a way of sharing stuff between components in Client, not in the server.
3 replies
TTCTheo's Typesafe Cult
•Created by Huilen on 7/13/2024 in #questions
is it wrong to call myself a software engineer if i didn't go to college
Dont let others tell you what you are and what you are not. If you fit the definition of a software engineer/developer whatever(you can contribute to making sofware) then you are one, even if you did a degree or not. I am a self taught software engineer as well and I am telling you that you are one. Ignore the naysayers. :deranged:
12 replies
TTCTheo's Typesafe Cult
•Created by Jima-Dube on 7/11/2024 in #questions
I'm struggling with a large HTML file issue in my Next.js project.
1. Use something like Next.js so that the whole bundle doesnt come in one go and each page has a seperate bundle
2. Use Lazy loading/Suspense for components which are not that often used
3. Use tree shaking for your third party libraries so that only the components/functions you are using from those libraries become a part of your bundle etc.
3 replies
TTCTheo's Typesafe Cult
•Created by Jacob on 6/25/2024 in #questions
Connecting to websockets in app router
Agree with Hackder. Persist connections like sockets etc cant be achieved using server lambda functions as they just start when a request comes via an event listener type interface. You will need a seperate dedicated server on a linux instance or something for that which runs all the time for which you will have to give a fixed amount of money per month instead of the usual pay per usage scheme of lambda functions.
5 replies
TTCTheo's Typesafe Cult
•Created by Paulo Martins on 7/7/2024 in #questions
About Theo's take of not destructuring props
Without the proper context of why he said it, cant really say much but I use prop spreading all the time. 🥳
10 replies
TTCTheo's Typesafe Cult
•Created by deviana on 7/6/2024 in #questions
should we stop using useMemo and useCallback in react v19?
Yes. useMemo and useCallback also dont solve the memoization issue always and a lot of times there is literally no need of memoization at all and devs still do it. If React Compiler is shipping with React 19 then stop using them.
6 replies
TTCTheo's Typesafe Cult
•Created by johnny the fifth on 6/30/2024 in #questions
Do i use server components , actions over express JS for my App
Server actions are still relatively new. I would recommend you use Nextjs api routes for your server instead of making a custom javascript server since that tech is built in.
14 replies