useAccountManager popup improvements
- Dominant language
- JavaScript
- Stars
- 51
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
Few ideas I had for improving useAccountManager, mostly when using popup.
- improved status checking
- check if popup window is currently open
- something like `const {popupOpen: boolean} = useAccountManager()`
for example: this would make it easy to display a loader on the base website while the authentication is happening in the popup window (i.e. {popupOpen && })
- callback events
- something like `useAccountManager(options, onAccountAdded : () => {}, onAccountRemoved: () => {}, onAccountsUpdated:: () => {}, onAuthCancelled: () => {})`
ex: in table editor, after authentication is finished, i want to use a callback to execute some cmds. here's how i do it now:

Contributor guide
Assessment
This issue has not been assessed yet.