sample state - nrice95/Strive GitHub Wiki

Sample State

{
  entities: {
    routes: {
      1: {
        id: 1,
        route_map_data: [...],
        userId: 11,
      },
      2: {
        id: 2,
        route_map_data: [...],
        userId: 25,
      },
      3: {
        id: 3,
        body: [...],
        userId: 11,
      }
    },
    users: {
      11: {
        id: 11,
        username: "road_runner",
        email: "[email protected]"
        createdRouteIds: [1, 3],

      },
      25: {
        id: 25,
        username: "wile_e_coyote",
        email: "[email protected]"
        createdRouteIds: [2],
      }
    }
    workouts: {
      1: {
        id: 1,
        userId: 11,
        routeId: 2,
      },
      2: {
        id: 2,
        userId: 25,
        routeId: 3,
      }

    }
    workoutStats: {
      1: {
        id: 1,
        workoutId: 1,
        description: "Central park loop. Cool temperature. Quick"
      },
      2: {
        id: 2,
        workoutId: 2,
        description: "East river 10k. Windy. Slow"
      }
    }
  },
  ui: {
    loading: true/false
  },
  errors: {
    login: ["Incorrect username/password combination"],
    routeForm: ["No routes added to map"],
  },
  session: { currentUserId: 25 }
}