seanh1986 / flutter-bbtm

MIT License
0 stars 0 forks source link

Error thrown in DEV when logging in with NAF name #35

Open arlophoenix opened 1 month ago

arlophoenix commented 1 month ago

Bad state: Cannot emit new states after calling close

https://vscode.dev/github/seanh1986/flutter-bbtm/blob/feature/sync-fvm-version/packages/authentication_repository/lib/src/authentication_repository.dart#L262

dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 296:3  throw_
packages/bloc/src/bloc_base.dart 97:9                                        emit
packages/bbnaf/login/cubit/naf_name_login_cubit.dart 42:7                    nafNameSignInSubmitted
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 45:50           <fn>
dart-sdk/lib/async/zone.dart 1661:54                                         runUnary
dart-sdk/lib/async/future_impl.dart 163:18                                   handleValue
dart-sdk/lib/async/future_impl.dart 861:44                                   handleValueCallback
dart-sdk/lib/async/future_impl.dart 890:13                                   _propagateToListeners
dart-sdk/lib/async/future_impl.dart 666:5                                    [_completeWithValue]
dart-sdk/lib/async/future_impl.dart 736:7                                    callback
dart-sdk/lib/async/schedule_microtask.dart 40:11                             _microtaskLoop
dart-sdk/lib/async/schedule_microtask.dart 49:5                              _startMicrotaskLoop
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 181:7           <fn>
seanh1986 commented 1 month ago

@arlophoenix I think this may cause that weird initial app reload when signing in with a naf name for the first time