bzuu
19 October 2022 13:46
#1
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_token" => user_token} = _session, socket)
It seems the the params
argument is never used so could be replaced with _params
while the assignment to _session
seems unnecessary so we end up with:
on_mount(_, _params, %{"user_token" => user_token}, socket)
Thanks for your feedback! We are hard at work on a major revision right now and will release the new version of the book before the end of February with this addressed.
1 Like
Kurisu
26 February 2023 19:35
#3
Hello @SophieDeBenedetto , thank you for this good news!
I have a question please, will this new version of the book include Phoenix 1.7?
Either way, it’s a great book!
Kurisu
28 February 2023 03:06
#5
This is fantastic, I can’t wait to get it! ^^