[Vuejs]-Browser back button handling in Vue Js

0👍

This is not reliably possible in browsers, regardless of the framework you are using; see https://stackoverflow.com/a/12381610/5471218 for a similar question.

That said, I strongly advise against interfering with the user’s browser interaction that way. If you want to protect users from losing data, you could save it to local storage until you have confirmation that the data has been stored in the backend.

Leave a comment