Programming Phoenix LiveView (Pragmatic Bookshelf)
Most Active This Week
Most Active This Month
Title: Programming Phoenix LiveView
I am not sure if this an appropriate way to send feedback for this book. It seems like the defacto i...
New
Most Active This Year
At start of the page log_out_user/1on_mount/4 should be on separate lines
iex> exports PentoWeb.UserAuth
__phoenix_verify_routes__/1
...
New
Title: Programming Phoenix LiveView: Mount and Render the Product Index • 115
… let’s examine the socket assigns now. Add the following...
New
The latest book version, B 13.0 supposes to use the latest Phoenix 1.8.0 heex template variable interpolation syntax, what is not the ca...
New
There’s no simple_form/1 in phoenix 1.8
So this code
<div>
<.simple_form
for={@form}
id="promo-form"
phx-change=...
New
On page 139 in the iex session in the Test Drive the Schema section, the instruction is to execute Product.changeset/2. However, the prev...
New
In Install Elixir, Postgres, Phoenix, and LiveView it says:
Make sure you get at least the minimal version of Elixir (>= 1.14 as of ...
New
The line on page 65 (using the PDF) is
on_mount: [{PentoWeb.UserAuth, :ensure_authenticated}] do
This is incorrect and will throw an e...
New
Sorry, I couldn’t figure out how to add a tag to a previous post (so that it shows up in the right section here), hence I just made a new...
New
The inline HTML in the book references the functions upload_image_error, upload_error_message, and upload_error_to_string. They are not d...
New
There looks to be a misprint on page 217 of Book version: P1.0—March, 2026. A code block is displayed of a <.form> component with a...
New
p81: live "/products/new", ProductLive.Index, :new – as you noted just above, the generator in Phoenix 1.8 puts this in ProductLive.Form,...
New
p2: we update a yet another element. Delete "a ".
p11: you might seeing – s/seeing/see/
p12: <imagedata fileref=”images/intro/phoenix-...
New
Title: Programming Phoenix LiveView (page 139)
Example: “Redipient” should be “Recipient”
New
happy to get the email this morning about the 1.1 version of the book! Just last night I spent an unnecessary amount of time figuring out...
New
In the brief description of ~/pento/lib/pento/promo/recipient.ex it says ‘… Then we disable our primary key since our live view won’t mak...
New
Most Active Last Three Years
root_layout: {PentoWeb.LayoutView, :root},
This results in the following following error:
no “root” html template defined for PentoWeb...
New
Disclaimer: I hope all of this is accurate, and not the result of some stupid typo I failed to notice. Anyways…
This post comprises 2 is...
New
The schemaless form defined in file “lib/pento_web/live/promo_live.html.heex” on page 133 of the book requires some transformation. The :...
New
Hi, I just finished reading Programming Phoenix LiveView B10 PDF edition.
I found some typos and errata, and I will report them all in t...
New
The code example explicitly adds a layout to the live session used for WrongLive:
root_layout: {PentoWeb.LayoutView, :root},
This m...
New
The code example at the top of page 140 includes the phx-debounce=blur binding:
<.input field={@form[:email]} type="email"
label="E...
New
The changelog for LiveView 0.20.x stated the deprecation. It seems like it’s largely only a name change, i.e., there’s no functional diff...
New
The 3rd paragraph on the page states:
Our <.header> function invocation in the index template doesn’t make use of the <:subtit...
New
In PentoWeb.RatingLive.Index.product_rating/1 function, there is a call to <RatingLive.Show.stars rating={rating} product={@product} /...
New
Hi! To get to see the shapes on the board, I think that where it says:
# lib/pento_web/live/game_live/board.ex
def assign_shapes(%{assig...
New
if active Pentominos do not showup on the screen it is due to this line on p369
defp assign_shapes(%{assigns: %{board: board}} = socket)...
New
Something wrong is with using the .simple_form component in the promo_live.html.heex template. Instead of seeing the content described on...
New
The last line in the first paragraph on page 99 reads:
…put certain instructions in socket.products.inserts or socket.products.deletes....
New
When describing the render/1 function, there is a wrong reference to the :let directive used in the simple_form/1 function component:
T...
New
At the top of page 12, after “Now, start the web server,” the book shows sample output, but does not show the command to start the web se...
New
Most Active Over Three Years
In general, the book isn’t yet updated for Phoenix version 1.6. On page 18 of the book, the authors indicate that an auto generated of ro...
New
The markup used to display the uploaded image results in a Phoenix.LiveView.HTMLTokenizer.ParseError error.
lib/pento_web/live/product_l...
New
It seems the second code snippet is missing the code to set the current_user:
current_user: Accounts.get_user_by_session_token(session["...
New
The generated iex result below should list products instead of product for the metadata. (page 67)
iex> product = %Product{}
%Pento....
New
Hi! I know not the intentions behind this narrative when called, on page XI:
mount() |> handle_event() |> render()
but the correc...
New
Book: Programming Phoenix LiveView, page 142 (157/378), file lib/pento_web/live/product_live/form_component.ex, in the function below:
d...
New
“The ProductLive.Index template calls a helper function, live_component/3, that in turn calls on the modal component. ”
Excerpt From: Br...
New
A further clarification: When I move to the “Stateful components” section and run a compile with “iex -S mix”, the compile works. When I ...
New
The right lifecycle should be
mount/3
handle_prams/3
render/3
New
Title: Programming Phoenix LiveView B8 - entire Ch4 modal component section needs correcting (Page 101-114)
Example: Programming Flutter...
New
On Chapter 3 - Page 78, the beginning of the page has this code here:
@doc """
Maybe it is missing to put the Pento context before Cata...
New
(Phoenix 1.6.6, Ecto 3.7.2, Elixir 1.13)
When building the custom Survey context, we are told to then update the rating.ex file with the...
New
The introduction instructions under section “Build a Simple LiveView” are incomplete. If followed from book one gets the following error:...
New
In the code sample for auth /pento/lib/pento_web/live/user_auth_live.ex the on_mount function is defined as:
on_mount(_, params, %{"user...
New
socket is being accessed in the function body, hence the need to include it in the function head.
Current:
def maybe_track_user(
...
New
Publisher:
Pragmatic Bookshelf
Latest in Programming Phoenix LiveView
Get money off!
The Pragmatic Bookshelf
35% off any eBook
Use the coupon code "devtalk.com" to get 35% off any eBook published by PragProg!









