Extension login infinite loading #198
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "196-ext-login-infinite-loading"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The user was unable to log in with an older/unsupported nostr extension which caused the infinite loading.
This PR's intent is to add a fallback and a timeout for such cases where extensions are not responding within a certain timeframe.
To that end, we:
EXTENSION_LOGIN_DELAY_SECONDS
(the delay after initial login press after which we assume extension is taking longer than usual) andEXTENSION_LOGIN_TIMEOUT_SECONDS
(the actual timeout) which interrupts login attempt and gives back control to the user.LoadingSpinner
, it can optionally include child component, i.eButton
to manually interrupt the loadingTimeoutError
which we can type check against and log the errorAdditionally, we updated the
isOnline
detection to self-ping (localhost
will cause false positives). The online detection will be updated with the new offline flow features.Closes #196