
ghenry
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!
Marked As Solved

SophieDeBenedetto
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
Popular Prag Prog topics










Other popular topics










Latest in PragProg
Latest (all)
Categories:
Popular Portals
- /elixir
- /opensuse
- /rust
- /kotlin
- /ruby
- /erlang
- /python
- /clojure
- /react
- /quarkus
- /go
- /vapor
- /react-native
- /v
- /wasm
- /django
- /security
- /nodejs
- /centos
- /rails
- /haskell
- /fable
- /gleam
- /js
- /swift
- /deno
- /tailwind
- /assemblyscript
- /laravel
- /symfony
- /phoenix
- /crystal
- /typescript
- /debian
- /adonisjs
- /julia
- /arch-linux
- /svelte
- /spring
- /c-plus-plus
- /preact
- /flutter
- /actix
- /java
- /angular
- /ocaml
- /zig
- /kubuntu
- /scala
- /zotonic
- /vim
- /rocky
- /lisp
- /html
- /keyboards
- /emacs
- /nim
- /vuejs
- /nerves
- /elm