Implement better data consistency for realtime subscriptions #36
Labels
bug
Something isn't working
enhancement
New feature or request
improvement
improves existing features
Currently the realtime events work as follows:
This works, but it's not entirely consistent as it doesn't handle the realtime subscriptions interrupting and missing updates. There's also a gap between the data being fetched and the realtime subscription being established.
If a user reloads the page and fetches the data, then starts establishing the realtime subscription, but the organizer pushes a new round between the time the user fetched the data and the time the realtime subscription is established, then their fetched data won't include the new round, but the realtime subscription will have missed it as well, desyncing the user.
As detailed here we can listen to the state of the subscription and based on those we can then (re-)fetch data.
The text was updated successfully, but these errors were encountered: