DataStoreQuerySnapshot

public struct DataStoreQuerySnapshot<M> where M : Model
extension DataStoreQuerySnapshot: Sendable

A snapshot of the items from DataStore, the changes since last snapshot, and whether this model has finished syncing and subscriptions are active

  • All model instances from the local store

    Declaration

    Swift

    public let items: [M]
  • Indicates whether all sync queries for this model are complete, and subscriptions are active

    Declaration

    Swift

    public let isSynced: Bool
  • Declaration

    Swift

    public init(items: [M], isSynced: Bool)