In the following scenario the page locking mechanism doesnât prevent content from being lost/overwritten.
- User A works on a page, saves the changes and leaves the browser tab open without leaving the page.
- User B checks the same page, corrects a typo and saves immediately.
- User A comes back to the tab and keeps on working, saving and thus overwriting the corrected typo.
This happens because, due to the actions of User B, locking and unlocking the page happens âtoo fastâ. User A never sees the red bar and the content will not be reloaded, because the lock pings before and after User Bâs edits come back âunlockedâ. User A cannot know that the page has changed.
This only happens if User A stays on the page, navigating the panel and coming back would reload the content.
Can I do anything apart from telling User B not to be so fast?
Could the lock ping return a timestamp? So the panel can reload the content. Even though it never got a âlockedâ response, it knows the content has become stale.