# Programming Phoenix Liveview B2.0 - P99

**URL:** <https://forum.devtalk.com/t/programming-phoenix-liveview-b2-0-p99/8186>\
**Category:** PragProg Customers\
**Tags:** book-programming-phoenix-liveview, suggestion\
**Created:** [25 March 2021 15:14 UTC](https://forum.devtalk.com/t/programming-phoenix-liveview-b2-0-p99/8186 "2021-03-25T15:14:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![asibbald](https://forum.devtalk.com/letter_avatar_proxy/v4/letter/a/cdc98d/32.png) [@asibbald](https://forum.devtalk.com/u/asibbald)\
**Post date:** [25 March 2021 15:14 UTC](https://forum.devtalk.com/t/programming-phoenix-liveview-b2-0-p99/8186/1 "2021-03-25T15:14:50Z")

</div>

P99:

“def live\_modal(socket, component, opts) do path = Keyword.fetch!(opts, :return\_to) modal\_opts = [id: :modal, return\_to: path, component: component, opts: opts] live\_component(socket, PentoWeb.ModalComponent, modal\_opts) end”

I don’t think we’ve met Keyword.fetch! before. Whilst the name makes it pretty obvious what it does, it might be worth a mention/explanation.
