3min chapter

Elixir Wizards cover image

Sophie DeBenedetto on the Future of Elixir and LiveView

Elixir Wizards

CHAPTER

How to Use a Shared Live Session to Render Your Routes

A shared live session does a handful of things for you. You can define live view hooks that should be invoked at the same point in their lifecycle. One thing I was wondering is can we render a 404 directly from the on mount callback? And that's what I don't know if you can. That would be a neat solution, right? It wouldn't even have to dance around how to get the 404 page to show without changing the URL.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode