Skip to content
Discussion options

You must be logged in to vote

Hey @derekc00, as you can see:

struct SharedState: ReducerProtocol {
  struct State: Equatable {
    var counter = Counter.State()
    var currentTab = Tab.counter

    var profile: Profile.State {
      get {
        Profile.State(
          currentTab: self.currentTab,
          count: self.counter.count,
          maxCount: self.counter.maxCount,
          minCount: self.counter.minCount,
          numberOfCounts: self.counter.numberOfCounts
        )
      }
      set {
        self.currentTab = newValue.currentTab
        self.counter.count = newValue.count
        self.counter.maxCount = newValue.maxCount
        self.counter.minCount = newValue.minCount
        self.counter.numberO…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@derekc00
Comment options

Answer selected by derekc00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants