mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
fix(core): add error boundary for workspace layout (#5014)
https://github.com/toeverything/AFFiNE/assets/3468483/d478bf4f-2be3-4d7d-8d94-aa95c1f74c8e
This commit is contained in:
@@ -60,7 +60,7 @@ export function useCurrentUser(): CheckedUser {
|
||||
// login succeed but the session request failed then.
|
||||
// also need a error boundary to handle this error.
|
||||
throw new SessionFetchErrorRightAfterLoginOrSignUp(
|
||||
'First session should not be null',
|
||||
'Fetching session failed',
|
||||
() => {
|
||||
getSession()
|
||||
.then(session => {
|
||||
|
||||
Reference in New Issue
Block a user