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

This commit is contained in:
EYHN committed 2025-03-17 09:28:25 +00:00
1 parent 7dbc9b42b7
commit b401012d85
4 files changed
+70 -8

No files matched your search

@@ -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;
}