Skip to content

Commit

Permalink
Merge branch 'fix/issue-57'
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpatrickmorgan committed Sep 27, 2023
2 parents 8edbeb9 + c13f998 commit 80a2d5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/TCACoordinators/TCARouter/TCARouter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct TCARouter<

public var body: some View {
Router(
viewStore.binding(get: routes, send: updateRoutes),
ViewStore(store, observe: { $0 }).binding(get: routes, send: updateRoutes),
buildView: { screen, index in
screenContent(scopedStore(index: index, screen: screen))
}
Expand All @@ -58,7 +58,7 @@ public struct TCARouter<
self.action = action
self.identifier = identifier
self.screenContent = screenContent
viewStore = ViewStore(store, observe: { $0 })
self.viewStore = ViewStore(store, observe: { $0 }, removeDuplicates: { routes($0).map(\.style) == routes($1).map(\.style) })
}
}

Expand Down

0 comments on commit 80a2d5e

Please sign in to comment.