The initializer is not created.
gevorgyanvahagn opened this issue · comments
Hi! Thank you for creating this great library.
As I saw int the documentation, with this code there should be autogenerated initializer similar to this CourseCell(course: PandaEntry.Course)
, but the initializer is missing. Can you please help me to understand what is the problem?
struct CourseCell: View {
@GraphQL(PandaEntry.Course.title)
var title: String?
var body: some View {
Text(title ?? "unknown")
}
}
Hi! Thanks for reporting this.
My best guess so far is that this is due to either:
- Caching problem: we're not invalidating the cache
- Project set up problem: maybe the build phase isn't running correctly
Can you please check if clearing the cache helps? In the directory that contains your Xcode project run this command:
graphaello clearCache
Maybe that fixes it and it turns out it was a caching issue.
If it doesn't fix it, I will need more steps to reproduce this issue.
Are you able to share your Xcode project with me?
Thanks!
Yes cleaning the cache fixed the issue.
I'm reopening since, the cache invalidation bug isn't resolved yet