-
Notifications
You must be signed in to change notification settings - Fork 219
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
Error: No StoreProvider<AppState> found. To fix, please try: * Using Dart 2 (required) by using the --preview-dart-2 flag * Wrapping your MaterialApp with the StoreProvider<State>, rather than an individual Route * #99
Comments
Hey @Abgaryan :) Sorry I missed this one :/ Hrm, that's super odd. Overall, the code looks correct. Therefore, the only thing I could think of: Somehow the |
Hello @brianegan, |
Yah, that's what I noticed as well. Hrm, this is a really funny one :/ All Do you happen to have any code you can share to reproduce the error, or are you able to reproduce the issue locally and set some breakpoints / do some manual calls? Thanks! |
Unfortunately, I can't reproduce the error, I am getting the error logs via Crashlyics from the live app. |
Dang, that's a real bummer :/ In that case, the best thing I could think of is to add more logging in that method. For example, could you wrap the I'm wondering if there's just some weird way a user is getting to that Widget (maybe from a push notification or some other mechanism) that does not setup the correct |
I will add exception to the error log and will let you know how it goes.
from other Widget which is in under the |
Thanks! And Dang -- again, I really can't see anything wrong in that code snippet -- it's an odd bug for sure. Please definitely let me know if you discover anything from the additional logs and I'd be happy to help out in any way I can! |
Hey @Abgaryan -- did you all happen to have any luck tracking this down? |
Hello @brianegan didn't get any crash report with |
No worries -- just wanted to check in and see if I could help at all! Always feel free to ping me if this is still coming up and if ya find the cause. |
Hello, @brianegan is it the right approach to dispatch action in
|
Oh my -- I missed this one! Generally, you cannot access the store in a |
Time to time getting Crashlytcis report like this:
Non-fatal Exception: package:flutter_redux/flutter_redux.dart 29 in StoreProvider.of Error: No StoreProvider<AppState> found. To fix, please try: * Using Dart 2 (required) by using the --preview-dart-2 flag * Wrapping your MaterialApp with the StoreProvider<State>, rather than an individual Route * Providing full type information to your Store<State>, StoreProvider<State> and StoreConnector<State, ViewModel> If none of these solutions work, please file a bug at: https://github.com/brianegan/flutter_redux/issues/new
Note: In the app regulary using the Redux and it works fine.
Here is the app snippet:
This is the screen where the issue is happening:
Doctor summary (to see all details, run flutter doctor -v):
The text was updated successfully, but these errors were encountered: