Phoenix 1.7's new Flash.get/2 function (get_flash/2 is deprecated)

Notes

Phoenix 1.7 deprecated get_flash/2. There’s a new Phoenix.Flash.get/2 function to access flash data.

Interestingly, Phoenix.Flash.get/2 takes in a @flash assign. That’s the new way Phoenix is storing flash messages!

Want the latest Elixir Streams in your inbox?

    No spam. Unsubscribe any time.