Consider adding an option to refresh the Show Preview window when switching accounts from MetaMask
Opened this issue · 0 comments
filippsen commented
Summary
Consider adding an option to automatically refresh (completely reset) the App Preview window after the user switches accounts in MetaMask. It can be useful when testing multi-user DApps (interleaved access with multiple perspectives).
Motivation
Changing accounts without refreshing the preview window may invalidate the currently selected account resulting in an "app" execution error. This behavior (problem) solely depends on application execution flow and the option could help those cases, without requiring forced reloads or reopening.
Example:
a) operator as user1 performs action1;
b) operator switches account from user1 to user2;
c) operator as user2 performs action2 (on a completely reset application view state).