star ✨
CCConvex Community
•Created by star ✨ on 10/9/2023 in #support-community
Syncing updates when multiple users are changing the same thing
So imagine you have a note taking app like notion. If you have a get query and an update mutation on the content of that note - what's a good way to keep it in sync but not overreactive on each user's client?
If I'm typing something and the update mutation fires, then the get query sets the old value of what i typed in the note and it appears to be very buggy. I feel like I'm using convex wrong here and not sure if i should be doing this at all?
The same goes for if another user types/deletes something while im typing in that note - it goes crazy on both our clients since itll sync a value a bit delayed from the current one u typed ( since the api call itself takes lets say 200ms )
55 replies