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