Adding Toast Notifications to Delete Functionality
00:00 All right, now we're going to be able to get to one of these and hit delete, and it should pop up a Toast message. So what's involved here is going to the route that has the delete, the action that actually deletes the note. And then you're going to be using that Toast session storage that you just created to set a Toast message value in there
00:19 and use that to create a cookie value, a set cookie header that you will send with the response. And then in your route loader, you're going to look for that cookie value and grab the session storage for the Toast to get that session or that Toast message,
00:37 and then send that to the UI, and then the UI should display it. So a couple touch points here, but I think you're going to do a great job. So let's get to it.