pogadev
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Roren on 10/15/2022 in #questions
SSR to help mitigate slow client data transfer and improve TTI?
Just out of curiosity, why do you say that in "ssr land", all the fetching that happens in the clientside would still need to happen? I'm not really sure I understood what you're trying to say 😄
11 replies
TTCTheo's Typesafe Cult
•Created by pogadev on 9/27/2022 in #questions
tRPC app with SSR true, getStaticProps or getServerSideProps
Oh yeah...this is what I'm missing..I actually created the project form scratch. Thanks, I'll take a look at it
11 replies
TTCTheo's Typesafe Cult
•Created by pogadev on 9/27/2022 in #questions
tRPC app with SSR true, getStaticProps or getServerSideProps
@matee if I apply what is in the docs, I get some erros.
For example
11 replies
TTCTheo's Typesafe Cult
•Created by pogadev on 9/27/2022 in #questions
tRPC app with SSR true, getStaticProps or getServerSideProps
could you please show me an example code of that? I'm curios how you handle your context types in getStaticProps for example
11 replies
TTCTheo's Typesafe Cult
•Created by pogadev on 9/24/2022 in #questions
PUT request with tRPC
oh, got it! thank you for your response
32 replies
TTCTheo's Typesafe Cult
•Created by pogadev on 9/24/2022 in #questions
PUT request with tRPC
thanks a lot 😄
32 replies
TTCTheo's Typesafe Cult
•Created by pogadev on 9/24/2022 in #questions
PUT request with tRPC
interesting! I'll take a look at it! Thanks @Piotrek
32 replies
TTCTheo's Typesafe Cult
•Created by pogadev on 9/24/2022 in #questions
PUT request with tRPC
yeah, I get it! It's just that it's the first time I'm using tRPC and I've noticed this situation. Everything works fine, I was just curios if I'm missing something 🙂 Thanks for the answers, I am happy living with it just like you said @rre
32 replies
TTCTheo's Typesafe Cult
•Created by pogadev on 9/24/2022 in #questions
PUT request with tRPC
it's not technically correct :))
32 replies
TTCTheo's Typesafe Cult
•Created by pogadev on 9/24/2022 in #questions
PUT request with tRPC
yeah, but I don't like that 😆
32 replies
TTCTheo's Typesafe Cult
•Created by pogadev on 9/24/2022 in #questions
PUT request with tRPC
32 replies
TTCTheo's Typesafe Cult
•Created by pogadev on 9/24/2022 in #questions
PUT request with tRPC
@flicknote the thing is that the browser is using a POST request for that 🙂
32 replies
TTCTheo's Typesafe Cult
•Created by pogadev on 9/24/2022 in #questions
PUT request with tRPC
Let’s assume that you have a blog and you want to create a post.
For that, you’ll have a form on the client side and some inputs for the post title and post body. On submit, you send a POST request, using the useMutation hook. This POST request creates a new resource in your database.
Later that day, you want to edit the post title and again, from the client side, you have a form from which you can edit the title of the post. But for that, you’ll want to send a PUT request in order to update an existing resource. (That blog post that you already have in DB)
The correct way should be to send a PUT request when you create mutations for already existing entities
32 replies
TTCTheo's Typesafe Cult
•Created by pogadev on 9/22/2022 in #questions
PRIMARY KEY in supabase DB
Thanks a lot for this answer
11 replies
TTCTheo's Typesafe Cult
•Created by pogadev on 9/22/2022 in #questions
PRIMARY KEY in supabase DB
Thanks for the answer, @zenith
I tired to delete a column from my table and I got a warning message that I need a primary key in order to be able to delete / edit columns.
So I created a primary key and my question was why de we need a primary key, what’s the purpose 😆
11 replies