/books/programming-phoenix-liveview
Active Threads:
Most Active This Week
Most Active This Month
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
Most Active This Year
root_layout: {PentoWeb.LayoutView, :root},
This results in the following following error:
no “root” html template defined for PentoWeb...
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
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
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
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
There is an awkwardly worded “The other arguments give to this function are the same ones in the mount/3 function—params, session, and so...
New
Hello @SophieDeBenedetto,
1. Wrong Generator Context
On page 64 of chapter 6, when starting to generate and setup the code we will need,...
New
This is the same issue as this one (I’ll call it Form Episode 2) and this one (I’ll call it Form Episode 1). Unsurprisingly, it requires ...
New
Hello,
In chapter 10, Testing Your Live Views, the provided code is confusing. (Or I misread this passage)
Example Code
On page 295, w...
New
The code example explicitly adds a layout to the live session used for WrongLive:
root_layout: {PentoWeb.LayoutView, :root},
This m...
New
A sentence spanning from page 150 to 151 contains duplicated information:
“Since we’ve delegated most of the hard work to two other fun...
New
Similar to other post, need to access and assign changeset differently:
<.input
field={@changeset[:gender]}
t...
New
Most Active Last 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
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
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 cont...
New
The introduction instructions under section “Build a Simple LiveView” are incomplete. If followed from book one gets the following error:...
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
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, %{"...
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
The following code block in the Access Session Data in The Live View section is duplicated:
def mount(_params, session, socket) do
...
New
Programming Phoenix LiveView B4.0 (page 11)
When I give the command “mix ecto.create” near the bottom of page 11, it throws an error mes...
New
Here, we add two more keys to the socket.assigns. To set the :session_id key, we copy the session ID directly. Then, we use Accounts.get_...
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
Book Info
Publisher:
Pragmatic Bookshelf
Are you this book's author? To be notified of all posts made about it, sign up an account then click here, then select 'watching' from the bell icon in the top right corner.
Get money off!
The Pragmatic Bookshelf
35% off any eBook
Simply use coupon code "devtalk.com" at checkout. See full details here.