How should I mock data in the app during developement? #424
Unanswered
gabeklavans
asked this question in
Q&A
Replies: 1 comment
-
So I created a hosted account on wallabag.it and I was able to pull in entries from there. I'm not sure why the simulated app run didn't want to pull from my server when it's accessible in the simulated phone perfectly fine in Safari... I am still curious about trying to mock the entries, though, so I can just run the preview to see a list of entries. |
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
-
I tried running the app in iOS simulator on macOS but when I pointed it to my self hosted instance, no entries show up in the entries list and there's no error or warning in the logs.
@bourvill how do you usually test your app with entries to mess around with? I tried adding some mock data to the EntriesListView preview but since
entries
is aFetchedRequest
object, it's quite confusing for me to figure out how to properly mock this in a preview.Beta Was this translation helpful? Give feedback.
All reactions