How to access child state from parent reducer when using StackState?

I have a reducer which appends these two routes.

  @Reducer(state: .equatable, action: .equatable)
  enum Path {
    case manageRoutines(RoutinesManagement)
    case routineCategoryDetails(RoutineCategoryDetails)
  }
  

when I receive an action from manageRoutines state I need to update second routineCategoryDetails state which is in navigation stack. But I can't seem to find a way to access state. is there any way?

You might be looking for something like this

1 Like