It turns out we all were wrong in both what the issue was and the solution.Dan the man has completed this issue with a simple observable to wait for the requests responce to log the user out. The main issue that we noticed after this was fixed is that if you logout and get rerouted before the credentials clear you will look like you are still in the application. Refreshing reveals that you are actually logged out but it was a small gap in time that allowed it to seem like we did not log out. The issue was simply to log the user out once the prompt had been clicked to leave the drafted form. What was needed was the response from the pop up that asks if the user is sure. The logout button would just log you out and ask anyway so the prompt was useless but in the application prior to our work on this issue.
Great to have an issue done, I hope we get to work on more and have a better understanding right out the gate.
From the blog CSWSU – Triforce Code| Exploring and Learning by CSWSU – Triforce Code| Exploring and Learning and used with permission of the author. All other rights reserved by the author.