Currently, Phoenix LiveView only supports one hook per element. I recently ran into that limitation when I wanted to add functionality to a table that already had a hook on it. I came across this forum post Liveview Handling multiple phx-hook on same DOM node with a suggestion by Chris to delegate out to other hooks. Sounded simple enough, so I thought I'd give it a try.
continue reading on andrewtimberlake.com
⚠️ This post links to an external website. ⚠️
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.