mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
Start an immediate observation
In the iOS 26 simulator the demo app would show a flash of missing content.
This commit is contained in:
1 parent
1a3842e4bc
commit
7ec88b76e0
1 file changed
+1
-1
@@ -56,7 +56,7 @@ import GRDB
|
||||
|
||||
// Start observing the database.
|
||||
// Previous observation, if any, is cancelled.
|
||||
cancellable = observation.start(in: appDatabase.reader) { error in
|
||||
cancellable = observation.start(in: appDatabase.reader, scheduling: .immediate) { error in
|
||||
// Handle error
|
||||
} onChange: { [unowned self] players in
|
||||
self.players = players
|
||||
|
||||
Reference in new issue
Block a user