I currently need the functionality to unlock a deal when the tab is closed, the issue is that the lock status is stored in my DB and i need to call a POST request on tab close which will set the status of the deal to unlocked. I tried using “beforeunload” but it is very unreliable as shared by others facing same problem(totally fails in my case). What are some workaround ways where i can send the api call. I am using Angular, C# ASP.NetCore, SQL
I have tried using beforeunload which fails, the tab close should trigger the API call
sahil is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.