Loading
Current section: Session Storage 6 exercises
Problem

Implementing Flash Messages for Temporary Notifications

Loading exercise

Transcript

00:00 Remembering to do the unset and everything is probably unnecessary for a toast, because a toast is kind of like a flash in the pan, right? Like it's just a thing that happens in the instant, and then it should be gone. And that's actually a pretty common pattern. In fact, it's so common that it's

00:16 been encoded into a bunch of different libraries that help you manage sessions like this one. And so your responsibility is to switch from the set and get a process to a flash and get, which is going to make it so that we can get rid of the unset call. So this is a pretty quick one, because you're just

00:35 like changing one method call and removing another line, but it's important for you to understand how flashes work. So learn about that a little bit, and we'll come back together and do it together.