You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m encountering an issue in my Flutter app where the Bloc instance becomes null when emitting a state from a callback in Dio’s syncCase method. The listener triggers successfully, but the BlocBuilder does not rebuild the UI as expected.
Steps to Reproduce:
Set up a sync case method using Dio to upload data in the Flutter app.
Use a BlocConsumer and BlocBuilder to listen for state changes and rebuild the UI.
Emit a state from a callback in the Dio request, triggering a listener.
Observe that the listener works, but the BlocBuilder does not rebuild, and the Bloc instance is null when emitting the state.
Expected Behavior:
The BlocBuilder should rebuild the UI when a new state is emitted, even if the emission happens inside a callback.
Actual Behavior:
The listener triggers, but the BlocBuilder does not rebuild the UI, and the Bloc instance becomes null when emitting the state.
I’m encountering an issue in my Flutter app where the Bloc instance becomes null when emitting a state from a callback in Dio’s syncCase method. The listener triggers successfully, but the BlocBuilder does not rebuild the UI as expected.
Steps to Reproduce:
Expected Behavior:
The BlocBuilder should rebuild the UI when a new state is emitted, even if the emission happens inside a callback.
Actual Behavior:
The listener triggers, but the BlocBuilder does not rebuild the UI, and the Bloc instance becomes null when emitting the state.
The text was updated successfully, but these errors were encountered: