Skip to content

Commit 91f4723

Browse files
authored
[#778] PushNotificationTab에서 refreshable이 수행되면 앱이 강제종료되는 현상을 해결한다 (#781)
fix: 푸시 알림 refresh의 MainActor 격리 보장
1 parent 3e4748d commit 91f4723

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Application/Presentation/NotificationTab/Sources/PushNotification/View+Refreshable.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ extension View {
2121
@ViewBuilder
2222
func refreshable(
2323
isEnabled: Bool,
24-
action: @escaping @Sendable () async -> Void
24+
action: @escaping @MainActor @Sendable () async -> Void
2525
) -> some View {
2626
if isEnabled {
27-
refreshable(action: action)
27+
refreshable { await action() }
2828
} else {
2929
self
3030
}

0 commit comments

Comments
 (0)