Programming Phoenix LiveView (Pragmatic Bookshelf)
Hot This:
Most Active This Week
Most Active This Month
Most Active This Year

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 at the top of page 140 includes the phx-debounce=blur binding:
<.input field={@form[:email]} type="email"
label="E...
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

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

The last line in the first paragraph on page 99 reads:
…put certain instructions in socket.products.inserts or socket.products.deletes....
New

The 3rd paragraph on the page states:
Our <.header> function invocation in the index template doesn’t make use of the <:subtit...
New

Second paragraph in section Protect Routes with Plugs says "The authentication service is defined in the file lib/pento_web/controllers/u...
New

Talking about the Contex library, I think there is a tiny typo when referencing the library on page 246 (certainly because of auto-correc...
New

This paragraph mentions three functions that ensure data consistency:
Finally, the validate/2, unique_constraint/2, and validate_number...
New

The first paragraph on page 219 mentions a checkbox:
Then, we use the heading/1 component that we’ll define in a bit to show a heading ...
New

Hi! The first code snippet is presented in plain text:
def to_shapes(board) do
board_shape = to_shape(board)
pento_shapes = [board.a...
New

The second paragraph on page 221 describes the demographic display logic:
… If no demographic exists, and the socket assigns key of :de...
New
Most Active Last Three Years

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

root_layout: {PentoWeb.LayoutView, :root},
This results in the following following error:
no “root” html template defined for PentoWeb...
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

Title: Programming Phoenix LiveView B8 - entire Ch4 modal component section needs correcting (Page 101-114)
Example: Programming Flutter...
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

Since LiveView now supports Streams, the generated code seems to be pushing the user in that direction as well.
As a result, the example...
New

The link to live_patch/2 on the bottom of the page does not work. It seems this function no longer exists in the latest version. This may...
New

The first heex block of code in the section The Promo Live View should just be the <.header>; the code errors out if you include th...
New

After adding the code for on_mount/4 in UserAuthLive and then trying it out, I found that logging out fails due to /login not existing. I...
New

p 150
Now, we’re ready to plug our custom code into the save_product helper functions.
Since we’ve delegated most of the hard work to t...
New

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 bro...
New

Page 74: The Ecto.Changeset.cast/4 function filters the user data we pass into params.
params should be attrs
Pages 85-86: the function...
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 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

“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

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

socket is being accessed in the function body, hence the need to include it in the function head.
Current:
def maybe_track_user(
...
New

The text talks about adding two keys to assigns, a session_id key and a current_user key, but the example code is only showing the sessio...
New

Hi there,
Just wanted to call out that although what needs to happen should be pretty obvious, when we add handle_progress/3 on page 138...
New

“You’ll see how LiveView let’s you move fast by offering elegant patterns for code organization, and you’ll find that LiveView is the per...
New

“…With this function, we name the concept of a base query and we provide one common way to build the foundation for all Demographic queri...
New

Title: Programming Phoenix LiveView:IEX command not correct. Should be “alias Pento.Catalog.Product” not “alias Pento.Product” page 166.
New

Confiirm should be confirm
New

Title: Programming Phoenix LiveView: (page 221)
In the part to open up IEx with iex -S mix and do the test drive of the query.
It was n...
New
Book Info
Publisher:
Pragmatic Bookshelf
Get money off!

The Pragmatic Bookshelf
35% off any eBook
Simply use coupon code "devtalk.com" at checkout. See full details here.