alfilo
Explore posts from serversTTCTheo's Typesafe Cult
•Created by alfilo on 4/30/2024 in #questions
I still don´t get server actions
20 replies
CVV issue
I had a buggie entering the CVV of my debbit card. I have a virtual card so CVV changes each 5 minutes: I entered the CVV but it changed before Railway processed the payment, and it was rejected by my card app. I had the intial 5 bucks Railways give you for free, but now they are gone. Moreover, it says I have a 5 dollars debt. Whatever, Railway is great, so I'm gonna use it anyways.
7 replies
TTCTheo's Typesafe Cult
•Created by alfilo on 2/12/2024 in #questions
React queue simulation
It was some time ago since I started learning React, but for some reason I think my code has some obvious errors I can't find.
I'm trying to simulate a queue of messages in React: so, whenever you submit a message to the queue, it shows a message of submitting plus a cancel button so you can cancel the message from "submit".
But there is a bug: the state of msgQueue is set to a an empty array in the re-render, like if it was the first render: I think it is executing the:
line in the beginning of the component, and I don't know why.
Any help would be apreciated.
4 replies