Programming Phoenix LiveView: live_modal/2 instead of live_component/3 (210)

“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 :slight_smile: You’ll find it updated in the next release

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 :slight_smile:

2 Likes

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.