Skip to content

Commit e90aacc

Browse files
committed
refactor: Store에서 State 프로퍼티 래퍼 제거
1 parent 1fb4162 commit e90aacc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Application/DevLogPresentation/Sources/Root/RootView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public struct RootView: View {
1616
@State var viewModel: RootViewModel
1717
@State private var selectedRoute: Route?
1818
@State private var selectedMainTab = MainTab.home
19-
@State private var loginStore: StoreOf<LoginFeature>
19+
private let loginStore: StoreOf<LoginFeature>
2020
private let widgetURLTab: (URL) -> MainTab?
2121
private let windowEvent: TodoEditorWindowEvent
2222
private let pushNotificationTodoIdPublisher: AnyPublisher<String, Never>
@@ -39,13 +39,13 @@ public struct RootView: View {
3939
systemThemeUseCase: systemThemeUseCase,
4040
trackAnalyticsEventUseCase: trackAnalyticsEventUseCase
4141
))
42-
self._loginStore = State(initialValue: Store(
42+
self.loginStore = Store(
4343
initialState: LoginFeature.State()
4444
) {
4545
LoginFeature()
4646
} withDependencies: {
4747
$0.signInUseCase = .live(signInUseCase)
48-
})
48+
}
4949
self.widgetURLTab = widgetURLTab
5050
self.windowEvent = windowEvent
5151
self.pushNotificationTodoIdPublisher = pushNotificationTodoIdPublisher

0 commit comments

Comments
 (0)