1
0
forked from baron/baron-sso

로그인 전 계정조회

This commit is contained in:
2026-01-27 17:16:36 +09:00
parent c914fad405
commit 1a0dc74cb5
3 changed files with 113 additions and 87 deletions

View File

@@ -18,9 +18,11 @@ class ProfileNotifier extends AsyncNotifier<UserProfile?> {
return ref.read(profileRepositoryProvider).getMyProfile();
}
Future<void> loadProfile() async {
Future<UserProfile?> loadProfile() async {
state = const AsyncValue.loading();
state = await AsyncValue.guard(() => _fetch());
final profile = await _fetch();
state = AsyncValue.data(profile);
return profile;
}
Future<void> updateProfile({