Robby Chandra
Robby Chandra
the result between fetchAll between fetchAll+ Where is different, all data should have isActive = true, but when i use where clause it only return 2 data, i have 3...
thanks for reply @JohnEstropia, i fetch different objects because variant have relation with groups, i need to know what groups that available for new data. i can use `publisher.snapshot`, but...
even i update groups in `Variant` `ImportableUniqueObject` protocol, my `Variant` publisher will not be notified?
if i change my publisher closure to this, it will get a correct data instead of i use `.where(\._isActive == true)`
i see, thats why observer doesnt get notified. thankyou sure, this my variantPublisher code, just fetchAll and sorting it
> You're also using `notifyInitial: true` which will run the closure immediately. Are you sure that you are looking at the closure _after_ the transaction? i think the problem is...
> I see. You should also be careful because sorting with relationship keys only work on the initial list, but not on updates. In general you should avoid relying on...
> There's no performant way to observe on relationships (i.e. foreign table) so my recommended approach would be to add a private field to `Variant` that your imported entity can...
here's my UserVIewModel.init() ``` swift class UserViewModel: ObservableObject { private let userPublisher = dataStack.publishList(From().orderBy(.ascending(\.$id))) private let cartPublisher = Omni.dataStack.publishList(From().orderBy(.ascending(\.$storeCode))) @ObjectState var user: ObjectSnapshot? @Published var progress: Double = 0 @Published...
i got 3 variant of that crash here's crashlytics trace [crashlytics.zip](https://github.com/user-attachments/files/16068656/crashlytics.zip)