feat(core): user service loading state (#10922)
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user