I have the usual app of post with reactions and comments.
I have succeed to make an infinite scroll with adding deleting posts and use pubsub to broadcast modification (new reaction, comments,…). So, it works well when everything is managed by the liveview.
My issue is that a post can be in a lot of different liveview. So I have a lot of duplication.
I thought using a live component was the right move but it’s not that easy as it can’t directly receive a message.
Do you any tips on how to avoid the duplication ?