This is my first attempt at liveview. I am converting a plug/cowboy websocket based dashboard that has 3 infinite scrolls on the page. In original dashboard the scrolls are updated by doing a prepend. In the liveview code that works as expected but is having one issue, that is I can see view crashed
in browser log and the scroll other than the one receiving messages gets reset and it is rendered. So if danger
is receving messages than success
and warning
will keep restting and any data in them will be lost. Here is what it looks like
I have my live view code organized as such

All of the streams have the same code. They are listening on the pubsub for events. Queue is
stream
and 3 event
types danger
warning
success
. There is code repetition as still learning liveview.live_render is in the index.html.heex for the stream controller
each live_view component is the same as such.