Comments 0.2.6: One line to wire the editor into a host page
Comments 0.2.6 adds a helper for apps that embed the comments thread in their own LiveView pages.
The thread’s rich-text editor sends its content to the host LiveView. If the host does not pass it on to the comments component, the editor’s text never arrives and Post Comment silently does nothing. use PhoenixKitComments.Embed in the host LiveView now does the forwarding through a lifecycle hook, so it works alongside the host’s own handle_info without clashing.
It is meant for apps that depend on phoenix_kit_comments directly. Apps that treat the module as optional can still call CommentsComponent.forward_leaf_event/2 themselves. Dependencies were also refreshed.
Comments 0.2.6. Install or update: {:phoenix_kit_comments, "~> 0.2"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.