fix(auth): fix bug on hot refresh
This commit is contained in:
parent
719fa83576
commit
ba4f3a7b4a
@ -45,6 +45,7 @@ class AuthenticationCubit<Extra> extends Cubit<AuthenticationState<Extra>> {
|
|||||||
_authenticationRepository.cubitStatus.last;
|
_authenticationRepository.cubitStatus.last;
|
||||||
|
|
||||||
void _subscribeStatus() {
|
void _subscribeStatus() {
|
||||||
|
try {
|
||||||
_statusSubscription = _authenticationRepository.cubitStatus.listen(
|
_statusSubscription = _authenticationRepository.cubitStatus.listen(
|
||||||
(status) {
|
(status) {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
@ -57,6 +58,7 @@ class AuthenticationCubit<Extra> extends Cubit<AuthenticationState<Extra>> {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
} catch (_) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> init() async {
|
Future<void> init() async {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user