Skip to content

Commit 6eea0bc

Browse files
committed
[Doc] Improve ra-realtime doc to unlock record
1 parent cedba83 commit 6eea0bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/useLockOnMount.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ const PostEdit = () => (
5858
```
5959
{% endraw %}
6060

61+
**Note**: If users close their tab/browser when on a page with a locked record, `useLockOnMount` will call your `dataProvider.unlock` method. However, as browsers don't wait for asynchronous calls to finish, make sure your dataProvider executes as fast as possible.
62+
6163
## Parameters
6264

6365
`useLockOnMount` accepts a single options parameter, with the following properties (all optional):

0 commit comments

Comments
 (0)