Skip to content

Commit 7ec88b7

Browse files
committed
Start an immediate observation
In the iOS 26 simulator the demo app would show a flash of missing content.
1 parent 1a3842e commit 7ec88b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/DemoApps/GRDBDemo/GRDBDemo/Views/PlayerListModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ import GRDB
5656

5757
// Start observing the database.
5858
// Previous observation, if any, is cancelled.
59-
cancellable = observation.start(in: appDatabase.reader) { error in
59+
cancellable = observation.start(in: appDatabase.reader, scheduling: .immediate) { error in
6060
// Handle error
6161
} onChange: { [unowned self] players in
6262
self.players = players

0 commit comments

Comments
 (0)