Programming Phoenix LiveView B6: modal_component.ex no longer generated (page 120)

Programming Phoenix LiveView B6: modal_component.ex no longer generated (page 120)

At least in my version (0.17.5) the modal_component.ex is no longer generated. It seems that the corresponding functionality has been moved to live_helpers.ex, although with a different implementation.

If this is really the case, it would be nice to update the book accordingly.

(update)

It seems that the generated code at least between pages 118-123 refers to code generated by an older version of phx.gen.live.

1 Like

Thanks for pointing this out! I’ll make a note in the next release and we’ll aim to do a bigger update in the future.

Hi there! Yep we’ll be doing an upgrade for the next release. Stay tuned!

1 Like