Skip to content

Commit

Permalink
🐛 アプリが非常に重くなる、フリーズする問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
tasuwo committed Oct 29, 2022
1 parent 226dd0d commit 9d47ddf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions TsunDocsKit/Sources/AppFeature/View/RootView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public struct RootView<Container>: View where Container: DependencyContainer {
query: .all)
.environment(\.tagMultiSelectionSheetBuilder, tsundocListTabStackContainer)
.environment(\.tsundocCreateViewBuilder, tsundocListTabStackContainer)
.navigationDestination(for: AppRoute.TsundocInfo.self) { route in
.navigationDestination(for: AppRoute.TsundocInfo.self) { [tsundocListTabStackContainer] route in
tsundocListTabStackContainer.buildTsundocInfoView(tsundoc: route.tsundoc)
.environment(\.tagMultiSelectionSheetBuilder, tsundocListTabStackContainer)
.environment(\.tsundocCreateViewBuilder, tsundocListTabStackContainer)
Expand All @@ -111,7 +111,7 @@ public struct RootView<Container>: View where Container: DependencyContainer {
tagListStackContainer.buildTagList()
.environment(\.tagMultiSelectionSheetBuilder, tagListStackContainer)
.environment(\.tsundocCreateViewBuilder, tagListStackContainer)
.navigationDestination(for: AppRoute.TsundocList.self) { tsundocList in
.navigationDestination(for: AppRoute.TsundocList.self) { [tagListStackContainer] tsundocList in
tagListStackContainer.buildTsundocList(title: tsundocList.title,
emptyTile: tsundocList.emptyTitle,
emptyMessage: tsundocList.emptyMessage,
Expand All @@ -120,7 +120,7 @@ public struct RootView<Container>: View where Container: DependencyContainer {
.environment(\.tagMultiSelectionSheetBuilder, tagListStackContainer)
.environment(\.tsundocCreateViewBuilder, tagListStackContainer)
}
.navigationDestination(for: AppRoute.TsundocInfo.self) { route in
.navigationDestination(for: AppRoute.TsundocInfo.self) { [tagListStackContainer] route in
tagListStackContainer.buildTsundocInfoView(tsundoc: route.tsundoc)
.environment(\.tagMultiSelectionSheetBuilder, tagListStackContainer)
.environment(\.tsundocCreateViewBuilder, tagListStackContainer)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public struct TsundocList: View {
.onAppear {
store.execute(.onAppear)
}
.navigationDestination(for: AppRoute.Browse.self) { route in
.navigationDestination(for: AppRoute.Browse.self) { [store] route in
BrowseView(baseUrl: route.tsundoc.url) {
Button {
store.execute(.tap(route.tsundoc.id, .addEmoji))
Expand Down

0 comments on commit 9d47ddf

Please sign in to comment.