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
No ObservableObject of type Store<AppState, AppAction, World> found. A View.environmentObject(_:) for Store<AppState, AppAction, World> may be missing as an ancestor of this view.: file SwiftUI, line 0 #2
Comments
@sm0nster Hi, could you please show me code that raises the error? Usually, we have this error when forget to pass EnvironmentObject. |
Recipes/Features/Recipes/RecipesContainerView.swift:16:
Sorry I didn't attach it earlier but I'm using AppCode, and this showed up after I have run it in Xcode. |
@sm0nster do you have added @EnvironmentObject var store? |
@mecid I haven't changed anything it's just cloned repo |
@sm0nster I've just tried to clone the repo and it worked normally. Could you please try again? |
@mecid I've cloned the repo again, run it and first, when I tapped "breakfast" it opened details controller with infinite loader, I tapped "back" and now when I'm trying to tap any meal type I get same error :/ |
@sm0nster that's really strange because I can't reproduce the error. |
Hi, Xcode Version 11.4 (11E146) Any ideas? Or additional info I can provide? |
@panckreous @sm0nster try to switch the filter to vegan recipes. |
confirmed working as expected with Vegan and Vegetarian. |
Hey, I've read the article (kudos for it) and tried to play around with your structure but I'm getting fatal error when trying to get to recipe details from recipes listing:
Do you know maybe what is causing the problem?
The text was updated successfully, but these errors were encountered: