-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Initializer requires that EventEmitter conform to 'DispatcherType' #412
Comments
I guess that ForEach requires the entity needs to conform to Identifiable? |
ah probably, allEntities() returns AnyCollection. seems it does not fit with ForEach.init |
Do you know what I should do to work around this issue? |
currently, allEntities() is not efficient but you could cast into Array. that may work |
I'll try it, but I've since moved onto a different library. Hoping I can revisit this one in a couple years :~) |
Hey there,
I'm trying to use Verge and VergeORM in my application. Right now I have a very small model with a couple entries and I'm trying to list all the entries using SwiftUI:
But on the
StoreReader
line, I get the following error:Initializer 'init(debug:_:content:)' requires that 'EventEmitter<_StoreEvent<State, Never>>' conform to 'DispatcherType'
This seems to only happen if I add the ForEach block. Let me know if there's another way I should be doing this :~)
The text was updated successfully, but these errors were encountered: