calcite-react
calcite-react copied to clipboard
useAccountManager popup improvements
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 && <Loader/>})
-
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:
- something like
@samMatenaer These are great recommendations, @brandonlammey any thoughts?