Skip to content
Discussion options

You must be logged in to vote

Hi @evankline, I don't think this has anything to do with TCA. You do have a circular reference in your code. User.mockOne is using Account.mockOne, but also Account.mockOne is using User.mockOne. That's can't possibly resolve, and so Swift just won't compile it.

If this is just mock data then you can just hard code the IDs however you want, or also I believe if you used UUID.userOneId in Account.mockOne instead of calling out to User.mockOne.id then it would also compile.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@evankline
Comment options

@evankline
Comment options

@mbrandonw
Comment options

@evankline
Comment options

@evankline
Comment options

Answer selected by evankline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants