Programming Phoenix LiveView (Pragmatic Bookshelf)

Most Active This Week Top

Most Active This Month Top

pocketlim
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
JohnSmall
Title: Programming Phoenix LiveView (page 139) Example: “Redipient” should be “Recipient”
New
pocketlim
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
JohnSmall
Title: Programming Phoenix LiveView: Error on page 102 Example: The text says Add the following snippet to your index.html.eex templat...
New

Most Active This Year Top

New
oboudry-mvp
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
jshprentz
The code example at the top of page 140 includes the phx-debounce=blur binding: <.input field={@form[:email]} type="email" label="E...
New
jshprentz
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
jshprentz
This paragraph mentions three functions that ensure data consistency: Finally, the validate/2, unique_constraint/2, and validate_number...
New
jshprentz
The “Give It a Try” exercise “Add a Custom Validation” challenges the reader to: First, add a custom validation to the Product schema’s...
New
Slesa
Page 100 Add the following snippet to your index.html.eex template: index.html.heex Page 105 Our <.header> function invocati...
New
max
Hi there, in the book it says the authentication service should be located at ``` lib/pento_web/controllers/user_auth.ex but for me it...
New
jfriboldi
Hello all, I’m really loving this book, I found a small error on page 281 if you do not alias the SurveyResultsLive it will give this er...
New
lycheese
The template on page 138 already contains the .simple-form component even though we did not assign a form to the socket yet and will ther...
New
lycheese
When using phx.gen.live with phoenix 1.7.14 the generated code in index.html.heex uses patch instead of navigate. When looking up the tem...
New
rabbott
One of the examples has what I think is supposed to be an HTML comment but the opening tag is goofy. The example reads: <!== lib/pent...
New
rabbott
`<.header> Listing Products … ` The closing tag should be </.header>. This example and error appear twice on this page.
New
New
rabbott
There’s a sentence on page 103 that reads, “With just a hand full of products in our database, this isn’t necessarily a huge win.” I bel...
New

Most Active Last Three Years Top

taguniversalmachine
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
gorkaio
root_layout: {PentoWeb.LayoutView, :root}, This results in the following following error: no “root” html template defined for PentoWeb...
New
jwandekoken
Book: Programming Phoenix LiveView, page 142 (157/378), file lib/pento_web/live/product_live/form_component.ex, in the function below: d...
New
StoatPower
Title: Programming Phoenix LiveView B8 - entire Ch4 modal component section needs correcting (Page 101-114) Example: Programming Flutter...
New
New
dzen
The introduction instructions under section “Build a Simple LiveView” are incomplete. If followed from book one gets the following error:...
New
bzuu
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
arcanemachine
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
faried
The first heex block of code in the section The Promo Live View should just be the &lt;.header&gt;; the code errors out if you include th...
New
bzuu
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
ddrouin
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
AntonRich
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
faried
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
ddrouin
When restarting phx to try out the file upload changes as implicitly directed via: “Now, if you point your browser at /products/new, you...
New
zagoli
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

Most Active Over Three Years Top

Charles
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
akraut
The markup used to display the uploaded image results in a Phoenix.LiveView.HTMLTokenizer.ParseError error. lib/pento_web/live/product_l...
New
joepstender
The generated iex result below should list products instead of product for the metadata. (page 67) iex&gt; product = %Product{} %Pento....
New
herminiotorres
Hi! I know not the intentions behind this narrative when called, on page XI: mount() |&gt; handle_event() |&gt; render() but the correc...
New
jgchristopher
“The ProductLive.Index template calls a helper function, live_component/3, that in turn calls on the modal component. ” Excerpt From: Br...
New
asibbald
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
New
herminiotorres
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
okari5678
socket is being accessed in the function body, hence the need to include it in the function head. Current: def maybe_track_user( ...
New
rubyist
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
jack.lansing
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
asibbald
“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
asibbald
“…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
michaelwa
Title: Programming Phoenix LiveView:IEX command not correct. Should be “alias Pento.Catalog.Product” not “alias Pento.Product” page 166.
New
New

Latest in Programming Phoenix LiveView

View all Programming Phoenix LiveView threads ❯

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!

Related Portals