Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ask user to confirm before reloading browser during multi-step transaction #1762

Open
caudurodev opened this issue May 9, 2022 · 0 comments

Comments

@caudurodev
Copy link
Contributor

Why
Suggestion - to avoid operations being interrupted in multi-step flows, it could be helpful to block the users from accidentally reloading the browser by throwing a JavaScript alert that asks them to confirm the action.

What

window.onbeforeunload = function () {
  return 'Transaction is still processing. If you reload you will lose your progress - are you sure?';
 }

All potential multi-step transactions would need to be identified and this alert be added. Could be created as composable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant