Currently we have stream_insert
and stream
that can either add new items to a stream or update existing items if they are already present on the client. It would be good to also have stream_update
(or alternatively an update_only: true/false
option) that would update an existing stream item if it is present on the client side or ignore the item if it is not already present.
The use case is a bunch of users editing items in a tableview of a potentially large data set. If 2 users can see the same item, it would be nice to show the items updating, but if both users are looking at different portions of the dataset, i don’t want items popping into view just because the other user updated them.
I have some time to help to implement the feature, but I would need someone to walk me through the interaction between the LiveView’s concept of the stream on the server side and client side version of the stream first. Alternatively, if there’s a way to handle this use case with the existing streams api, I’m happy to learn.