Remix's concurrent submissions are fundamentally flawed
dashbit.co
dashbit.co
By the way, Martin Kleppmann's Designing Data-Intensive Applications book has a very good explanation of this subject.
For me, there are 11 network requests from sending 1 chat message. 2 appear to be related to the convo, /memories and /conversation.
For an example of what he is talking about, you can try deleting a chat from your chat history. It performs a PATCH to remove the single chat, then a GET with the full list of chats. Doing this multiple times can lead to the problems he’s outlining.
With wrangling, it’s probably also unnecessary in any given JS framework, but you have to be very intentional about it. With Phoenix LiveView minimal, efficient, and correct updates are included using the recommended patterns.
The video he put out related to these concepts is super helpful to visualize the process: https://www.youtube.com/watch?v=fCdi7SEPrTs