Deleting LiveView Stream Elements by Dom ID

Notes

We can delete LiveView stream elements with stream_delete/3 (which is already awesome!)

But in order to do that we need to have the full record in memory. 😔

What if we only have the dom ID? 🤔

LiveView ships with a stream_delete_by_dom_id/3 function that lets us use just that! 🥳

Want the latest Elixir Streams in your inbox?

    No spam. Unsubscribe any time.