kinsyu
kinsyu
Explore posts from servers
TTCTheo's Typesafe Cult
Created by kinsyu on 4/30/2024 in #questions
T3 Turbo - Run a typescript app with node
I ended up using tsx and it works :shrug:
5 replies
TTCTheo's Typesafe Cult
Created by kinsyu on 4/30/2024 in #questions
T3 Turbo - Run a typescript app with node
With the default config it's set to no emit so you can't run it as a node app, when I change it to emit js, it doesn't recognize the TS based imports
5 replies
TTCTheo's Typesafe Cult
Created by kinsyu on 5/12/2023 in #questions
Refresh a single React Server Componetns
I really appreciate the effort you put in the diagram, thank you
12 replies
TTCTheo's Typesafe Cult
Created by kinsyu on 5/12/2023 in #questions
Refresh a single React Server Componetns
I'm no expert in this topic, but generally servers will have way more compute power than any consuming device, therefore most advantages on the API approach aren't that important. As for the RSC, the main disadvantage would be running the requests on the server and sitting on a loading screen until they're complete, you can always use Suspense to have a loading screen while that happens, and if you're using adequate caching, maybe something like SWR, it would still not be that long. I definitely think there should be a way to refresh server components ( and their children ) individually instead of doing a full page refresh with router.refresh() inside a transition.
12 replies
TTCTheo's Typesafe Cult
Created by kinsyu on 5/12/2023 in #questions
Refresh a single React Server Componetns
Yeah this is what I might end up doing, kind of frustrating that there isn't a way to re-fetch a single component
12 replies
TTCTheo's Typesafe Cult
Created by kinsyu on 5/12/2023 in #questions
Refresh a single React Server Componetns
this would require to refresh the page right?
12 replies
TTCTheo's Typesafe Cult
Created by kinsyu on 4/26/2023 in #questions
Change return type based on value of parameters
Here is the final solution in case anyone is curious https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAbzgUygYwEwAYCCAhASQBo4BXAZ2TwEMAbagOzWRIuQGEIGYpq0YASsmoATVpU7de-IaPJwAvnABmUCCDgAiAO7UA5iGCaA3AFgAUBZgBPMMjg1KAUQHtsABWq8Q8gLyILODgYCABrZAYcEREoZHJyAC44AAMsAA8AEgRyHmAGPQVkwLg0AAtqPIIRJIZSEAAjVDNzIJBkGFFqDoB+JPqICFphBmagtihelPSsnKg8guTRlAZqeqGRSf7B4aXdG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WR0u23o9swI7Ltm3QtA1V7SR4HbDtO3TuNKCycBM6hrNzuJ5gKDRaBcDkiBwC5HQkMHofySQnvyYov3nU9gPlJU1RwIbuMQxEUQxHEiRwDL6RYNrad03AdZwCIEBxAwMvwHkyioINhVTweGdZ-ASB56Ly8YAX1W1cwSSF5vyBr36cVbwf2l7+X-hsOOVf5kDtdG43YTN9Dbey13PdjJQjJzaClN9wPQ9xHACeU8loNjsBYIAA
4 replies
TTCTheo's Typesafe Cult
Created by Revaycolizer on 4/19/2023 in #questions
Passing data as props in form function
Make sure you're using the correct env variables and that the setup is correct, are you using planetscale?
12 replies
TTCTheo's Typesafe Cult
Created by Revaycolizer on 4/19/2023 in #questions
Passing data as props in form function
You might want to look into toast.promise() for something like this. https://react-hot-toast.com/docs/toast
12 replies
TTCTheo's Typesafe Cult
Created by Revaycolizer on 4/19/2023 in #questions
Passing data as props in form function
Seems like an issue with your db connection
12 replies
TTCTheo's Typesafe Cult
Created by kinsyu on 1/14/2023 in #questions
npx prisma migrate dev
I am able to access the db though, queries work, I've added records, and I can access the db dashboard
6 replies
TTCTheo's Typesafe Cult
Created by kinsyu on 1/14/2023 in #questions
npx prisma migrate dev
6 replies