mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-30 00:29:46 +08:00
feat(core): user service loading state (#10922)
This commit is contained in:
@@ -6,6 +6,8 @@ import type { AffineUserInfo } from './types';
|
||||
|
||||
export interface UserService {
|
||||
userInfo$(id: string): Signal<AffineUserInfo | null>;
|
||||
isLoading$(id: string): Signal<boolean>;
|
||||
error$(id: string): Signal<string | null>; // user friendly error string
|
||||
revalidateUserInfo(id: string): void;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user