Programming Phoenix LiveView: PentoWeb.SurveyLive missing

Hi, on page 165 of B7.0.pdf you list PentoWeb.SurveyLive but you don’t say to create it.

Then on page 167, you say:

Now, point your browser at localhost:4000/survey and the following process will occur:

but SurveyLive is missing and fails.

Also a typo on p168:

Now that our data properly is set up in the on_mount callback, and SurveyLive
implements a simple mount/3 function, it’s time to render.

I think that should say (is in the wrong place)

Now that our data is properly set up in the on_mount callback, and SurveyLive
implements a simple mount/3 function, it’s time to render.

Thanks!

Hi @ghenry, thanks for sharing your feedback and catching that typo! On the bottom of page 164, we say With our route established, it’s time to define the SurveyLive live view.. We don’t explicitly walk you through defining that module at this point in the book, since it’s a later chapter and we expect the reader at this point to be familiar with the work of defining a live view module. We then pick up with the mount function implementation details. That said, I can clarify that in the prose a bit.

You’ll find that typo fixed in the next release :slight_smile:

1 Like

Thanks!