feat(core): user service loading state (#10922)

This commit is contained in:
EYHN
2025-03-17 09:28:25 +00:00
parent 7dbc9b42b7
commit b401012d85
4 changed files with 70 additions and 8 deletions
@@ -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;
}