Skip to content

Commit a6fc06a

Browse files
authored
Fix @default triggering an extra redraw on appear (#195)
1 parent ef1b231 commit a6fc06a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Defaults/SwiftUI.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ extension Defaults {
3939

4040
// The `@MainActor` is important as the `.send()` method doesn't inherit the `@MainActor` from the class.
4141
task = .detached(priority: .userInitiated) { @MainActor [weak self, key] in
42-
for await _ in Defaults.updates(key) {
42+
for await _ in Defaults.updates(key, initial: false) {
4343
guard let self else {
4444
return
4545
}

0 commit comments

Comments
 (0)