You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`<LockOnMount />` calls `dataProvider.lock()` on mount and `dataProvider.unlock()` on unmount to lock and unlock the record. It relies on `authProvider.getIdentity()` to get the identity of the current user. It guesses the current `resource` and `recordId` from the context (or the route) if not provided.
6
+
7
+
This feature requires a valid [Enterprise Edition](https://marmelab.com/ra-enterprise/) subscription.
`<WithLocks>` fetches the locks for a resource on mount, and puts them in a LocksContext. The locks are updated in real time.
6
+
7
+
This component calls `dataProvider.getLocks()`, then subscribes to the locks topic for the current resource, and refetches the locks when a new event is received.
8
+
9
+
This feature requires a valid [Enterprise Edition](https://marmelab.com/ra-enterprise/) subscription.
0 commit comments