Not exactly an error-related inquiry, but more about behaviors. In my Angular 9 setup using RxJS and Material, I have a table connected to a web socket for updates triggered by blur or change, depending on the column. This setup works well, updating the table as needed.
I have a specific scenario where I require collaborative editing in the table, hence opting for web sockets. However, collaborative editing presents challenges.
For instance, if User 1 is editing Row 1 and User 2 makes a change in the middle of the edit, it disrupts User 1's focus and updates the table for them.
In the GIF, you can see the Selects closing on both sides due to one update.
Objective
I want users to be able to edit simultaneously without their current selections being disrupted. I have a working example in my application that I've been unable to replicate.
Currently, I use a service to handle the web socket connection across components.
The web socket setup and subscription look like this:
Code Snippet
The web sockets contain data for a week, segmented into separate data sources for each day. When a single day's table is initialized, the component is linked to the subscription for that day from the web socket service. Is there a way to update the rows around the edited row and prevent focus disruption?
Any resources, assistance, or discussion would be highly appreciated!
Thank you for reading!