mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-15 00:56:26 +08:00
fix(core): implement editor timeout and report error from boundary (#5105) ci: add sentry env when frontend assets build (#5131) fix(core): expose catched editor load error (#5133) fix(infra): use blocksuite api to check compatibility (#5137) fix(infra): compatibility logic follow blocksuite (#5143) fix(core): rerender error boundary when route change and improve sentry report (#5147)
This commit is contained in:
@@ -5,7 +5,7 @@ export abstract class RecoverableError extends Error {
|
||||
return this.ttl > 0;
|
||||
}
|
||||
|
||||
abstract retry(): void;
|
||||
abstract retry(): void | Promise<void>;
|
||||
}
|
||||
|
||||
// the first session request failed after login or signup succeed.
|
||||
@@ -24,8 +24,6 @@ export class SessionFetchErrorRightAfterLoginOrSignUp extends RecoverableError {
|
||||
}
|
||||
try {
|
||||
this.onRetry();
|
||||
} catch (e) {
|
||||
console.error('Retry error', e);
|
||||
} finally {
|
||||
this.ttl--;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user