/books/programming-phoenix-liveview
Active Threads This:
Most Active This Week
Most Active This Month
On page 138, :timer.sleep(1000) is used in the server-side code to simulate latency. This would be a great place to introduce the client-...
New
Title: Name of book: Programming Phoenix LiveView
Can you remove all those “zero width space” inside code block ? that unicode character...
New
Most Active This Year
Please can we have this section added rather than:
Our app doesn’t currently have a concept of “admin” users, and we’ll leave building ...
New
In this section, at the point where it tells the reader to “Start up the server, log in, and point your browser at /promo… You should see...
New
The beginning of the “Use the Component” section instructs readers:
Alias the component in SurveyLive by adding this line to the top you...
New
I did the exercises in the “Your Turn” section of “Code Generation > Phoenix Authentication”.
As a result, when I did the generation ...
New
The sample code for explicitly adding the root layout seems to be outdated. I started the book this morning and just now got a “module do...
New
The book instructs readers to:
Open up lib/pento_web/live/product_live/index.html.heex and add a header that renders the value of the @g...
New
Most Active Last Three Years
In this - and subsequent - “Give it a try” sections, it would be very useful to have the answers, both to confirm whether we got it right...
New
I keep suggesting this book to people that want to learn Phoenix but never actually went through it myself. Today i picked the latest ver...
New
Updating a product in the list is done this way in the book
def handle_rating_created(
%{assigns: %{products: products}} = socket, updat...
New
Forms on both pages contain this code user_id in hidden input field:
<%= hidden_input f, :user_id %>
There could be beginners rea...
New
The book uses this code in the age group filter:
<form phx-change="age_group_filter" phx-target="<%= @myself%>&q...
New
Drawing is done using stateless components that exist in separate modules. For example:
# lib/pento_web/live/pento/board.ex
def render(a...
New
The LiveView Layers: The Modal Component
The code generated using the mix phx.gen.live Accounts User users name:string is very different...
New
I would like to share my thoughts on working through chapter 10 (‘Test Your Live Views’):
Because I worked through the previous exerci...
New
Please remove all of the “dive”, “deep dive” from the book. Using overused business jargon is a bad taste in my opinion. It creates a str...
New
I would suggest recommending resetting ecto in test environment before running the tests. I was faced with
** (Postgrex.Error) ERROR 42...
New
B8
defmodule PentoWeb.WrongLive do
use Phoenix.LiveView, layout: {PentoWeb.LayoutView, "live.html"}
Suggestion
defmodule P...
New
Could you please add a section on dynamically adding/removing one-to-many relationships on a form? Eg: Product and ProductAttribute
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 book contains this code
def assign_age_group_filter(%{assigns: %{age_group_filter: age_group_filter}} = socket) do
assign(socket, ...
New
Code snippet on page 138 contains a helper function assign_form/2 that isn’t used within the snippet itself; it’s used by the handle_even...
New
Most Active Over Three Years
This whole section is beautifully written. Clear, to the point overview of what we need to do, why we need to do it and how we are going ...
New
The text here could do with more explanation. It assumes a considerable amount of knowledge outside that covered so far in the book. If a...
New
P99:
“def live_modal(socket, component, opts) do path = Keyword.fetch!(opts, :return_to) modal_opts = [ id: :modal, return_to: path, com...
New
“Stateless Components as Tiny Helpers”
This is a great tip/explanation. It would be even better if placed right at the beginning of this...
New
P106:
“Notice there’s an :id key, as well as a :component key that specifies…”
This is a bit unclear - you appear to be referring to th...
New
P103:
"The modal component markup adds a few LiveView bindings to listen for close events: phx-capture-click=“close”, phx-window-ke...
New
“…Go ahead and add this logic to your template:…”
It would be helpful to always have the pathname to the file being referred to (in this...
New
P106:
“Look at the call to live_component/3 in the modal component’s markup…”
It would be worth mentioning that this markup appears in ...
New
P103:
because the phx-target is set to the @id assignment,
It’s not clear (to me at least) where/how it is set?
New
P95:
“But, whether you click the edit link for the first product on the list or point your browser at the edit route for that product, t...
New
Hi,
May I suggest you update Surface to 0.5.0 and your examples? It would be a shame to release the book using deprecated syntax.
New
Use Schemaless Changesets in LiveView - The Promo Live View
forms/pento/pento_web/live/promo_live.html.leex
(B5) <%= text_input f, :...
New
LiveView Layers: The Form Component:
After the extremely lucid explanations in the previous sections, I found the discussion in this sec...
New
Page 171 introduces the usage of an operator used in Ecto queries used to interpolate values. As explained by this Stack Overflow answer,...
New
I have a suggestion: in the source code .zip file, could there be some .exs files of all commands to run in the terminal that chapter?
C...
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.