-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: hydrated bloc stopped persisting state after update (^9.1.3) #4038
Comments
+1, My app seems to persist with 9.1.2 but not with 9.1.3 |
Sorry for the delay! I'll investigate and try to get a fix in by the end of the week, thanks! |
@JoseGeorges8 @devopsean I tried to reproduce and was unable. Are either of you able to provide a link to a minimal reproduction sample with detailed steps to reproduce the error (e.g. what platform you're running on what host machine you're using, what version of flutter/dart etc)? Thanks! |
@felangel
Platform: Mac OS: 14.2.1 (23C71) VS code: 1.85.2 (Universal) Flutter and Dart version: |
Flutter 3.16.0 • channel stable • https://github.com/flutter/flutter.git Mac OS: 13.5.1 (22G90) Android Studio Giraffe | 2022.3.1 Patch 2 |
Thanks, I'll try to reproduce with the Flutter/Dart versions you both provided and get back to you. |
@felangel Any update on this? |
@Akshay-Niveus i'd really appreciate any reproduction steps as so far I've been unable to reproduce the issue, thanks! |
@felangel I was able to reproduce it. It affects It's not exactly a "bug", but rather a breaking change introduced with e2407ca . Before this commit landed, even though the documentation said to call hydrate(); in the constructor, the desired behavior would work without calling it ( After the commit landed, Not sure if a fix is required here? But since it is a breaking change, maybe it would be worth:
|
Description
Hydrated bloc stopped persisting and restoring states after I updated beyond v9.1.0. When I lock in v9.1.0 in my pubspec.yaml, it works fine but when I let it run to the max possible version using "^", it does not work.
Steps To Reproduce
Expected Behavior
State should correctly persist.
Additional Context
I get null data from persistence using hydrated_bloc: ^9.1.0
The text was updated successfully, but these errors were encountered: