“The ProductLive.Index template calls a helper function, live_component/3, that in turn calls on the modal component. ”
Excerpt From: Bruce A. Tate, Sophie DeBenedetto. “Programming Phoenix LiveView.” Apple Books.
I believe that is should be “… ProductLive.Index template calls a helper function, live_modal/2, …”
well, live_modal/3
in Phoenix < 1.6. In Phoenix 1.6 it seems to be live_modal/2
You are correct! Thanks for catching that You’ll find it updated in the next release
xinz
18 October 2021 13:37
4
Hello @SophieDeBenedetto , thanks for your sharing, do we have a plan to cover the Phoenix 1.6 in the next (or the final version) release?
1 Like
Yes indeed! The final version of the book will be updated to use Phoenix 1.6 and the latest version of LiveView
2 Likes
xinz
20 October 2021 02:37
6
Great, looking forward that, thanks!
I am not sure, but I think it is incompatible with the latest version of LiveView and Surface. It seems the latest surface has full support for the LiveView 0.16.x version.