Revert "fixed some potential crashes"

This reverts commit bde9aade11.
This commit is contained in:
Toni Förster 2024-08-31 02:50:56 +02:00
parent f0d581d512
commit 13382270d5
No known key found for this signature in database
GPG Key ID: 292F3E5086C83FC7

View File

@ -20,16 +20,10 @@ final class Store<Data>: ResourceObserver, ObservableObject {
} }
func replace(_ items: Data) { func replace(_ items: Data) {
// Ensure the change happens on the main thread all = items
DispatchQueue.main.async {
self.all = items
}
} }
func clear() { func clear() {
// Ensure clearing happens on the main thread all = nil
DispatchQueue.main.async {
self.all = nil
}
} }
} }