As described in the previous recipe, sever-side concurrency control can be enabled when making a server-side UpdateRequest or DeleteRequest, however, client-side concurrency is not currently available while using the frontend UI.
In this recipe, we will create a custom JavaScript library that checks for concurrency when saving the record, essentially enabling a client-side optimistic concurrency control mechanism. We will then enable it for the contact entity being used.