Setup example data in SwiftUI Previews #29
Unanswered
NoahKamara
asked this question in
Q&A
Replies: 1 comment
-
Hi @NoahKamara, I think you need to track down a dependency is being accessed before prepare. Can you provide a small project that demonstrates the problem you are having? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a view that dynamically fetches items, and I want to preview it by injecting data into the database in prepareDependencies. However, the injected data doesn’t appear because the operations execute in the wrong order.
In my example, the database is accessed before it is prepared, so any modifications made during preparation are not reflected in the view.
Beta Was this translation helpful? Give feedback.
All reactions