alfilo
alfilo
Explore posts from servers
RRailway
Created by alfilo on 8/5/2024 in #✋|help
Deploying no working
No description
10 replies
RRailway
Created by alfilo on 7/8/2024 in #✋|help
DB not working in local env
No description
12 replies
TTCTheo's Typesafe Cult
Created by alfilo on 4/30/2024 in #questions
I still don´t get server actions
No description
20 replies
RRailway
Created by alfilo on 4/10/2024 in #✋|help
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:
const [msgQueue, setMsgQueue] = useState([])
const [msgQueue, setMsgQueue] = useState([])
line in the beginning of the component, and I don't know why. Any help would be apreciated.
4 replies