Fix @Default triggering an extra redraw on appear (#195)
This commit is contained in:
parent
ef1b2318fb
commit
a6fc06aa1b
|
@ -39,7 +39,7 @@ extension Defaults {
|
|||
|
||||
// The `@MainActor` is important as the `.send()` method doesn't inherit the `@MainActor` from the class.
|
||||
task = .detached(priority: .userInitiated) { @MainActor [weak self, key] in
|
||||
for await _ in Defaults.updates(key) {
|
||||
for await _ in Defaults.updates(key, initial: false) {
|
||||
guard let self else {
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue