# Programming Phoenix LiveView: Error in form component invocation, (page 241 epub)

**URL:** <https://forum.devtalk.com/t/programming-phoenix-liveview-error-in-form-component-invocation-page-241-epub/133612>\
**Category:** PragProg Customers\
**Tags:** book-programming-phoenix-liveview, error\
**Created:** [24 November 2023 17:50 UTC](https://forum.devtalk.com/t/programming-phoenix-liveview-error-in-form-component-invocation-page-241-epub/133612 "2023-11-24T17:50:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattvanhorn](https://forum.devtalk.com/user_avatar/forum.devtalk.com/mattvanhorn/32/5574_2.png) [@mattvanhorn](https://forum.devtalk.com/u/mattvanhorn)\
**Post date:** [24 November 2023 17:50 UTC](https://forum.devtalk.com/t/programming-phoenix-liveview-error-in-form-component-invocation-page-241-epub/133612/1 "2023-11-24T17:50:13Z")

</div>

In the book the invocation is presented as:  
“\<​.​live\_component  
​ module=​{PentoWeb.ProductLive.FormComponent}​​  
id=​{@product.id​ ​||​ :new​}  
​​ title=​{@page\_title}  
​​ action=​{@live\_action}​  
product=​{@product}​​  
navigate=​{~p"/products"}​​ /\>”

```auto
  <.live_component
    module={PentoWeb.ProductLive.FormComponent}
    id={@product.id || :new}
    title={@page_title}
    action={@live_action}
    product={@product}
    patch={~p"/products"}
  />

```

In LiveView 19.5 my generator replaces `navigate` with `patch`

---

<div class="post-metadata">

**Author:** ![SophieDeBenedetto](https://forum.devtalk.com/user_avatar/forum.devtalk.com/sophiedebenedetto/32/2521_2.png) [@SophieDeBenedetto](https://forum.devtalk.com/u/SophieDeBenedetto)\
**Post date:** [16 September 2024 02:36 UTC](https://forum.devtalk.com/t/programming-phoenix-liveview-error-in-form-component-invocation-page-241-epub/133612/2 "2024-09-16T02:36:36Z")

</div>

Thank you for pointing this out! We will have this fixed for the final release.
