lightningdiscgolf
lightningdiscgolf
TTCTheo's Typesafe Cult
Created by lightningdiscgolf on 7/28/2024 in #questions
Runtime error on redirect post-deletion
Following the From 0 to Production - The Modern React Tutorial (RSCs, Next.js, Shadui, Drizzle, TS and more) Tutorial here https://www.youtube.com/watch?v=d5x0JCZbAJs I have successfully made it to the delete button. When I click the delete button, I get a Runtime error and it crashes. When I add a 5 second delay before the redirect("/"); occurs and escape the full page image view before the redirect, there is no error. In both cases, the deletion of the image is successful. Could someone point me in the right direction towards troubleshooting this please and thank you!
3 replies