Skip to content

Sample State

Onur edited this page Jul 5, 2019 · 10 revisions
  entities: {
    tasks: {
      1: {
        id: 1,
        description: "Need help with cleaning both bathrooms. Make sure to scrub the bathtub!"
        categoryId: 1,
        userId: 17,
        taskerId: 4,
        location: "825 Battery St., San Francisco, CA, 94111",
        vehicleRequired: false,
        completed: false,
        taskDate: 2019-09-01,
        taskTime: 13:00:00
      },
      2: {
        id: 2,
        description: "Need to move 45-50 boxes filled with merchandise. "
        categoryId: 4,
        userId: 19,
        taskerId: 5,
        location: "505 Sansome St., San Francisco, CA, 94111",
        vehicleRequired: true,
        completed: false
        taskDate: 2019-07-30
        taskTime: 15:30:00
      }
    },
    users: {
      19: {
        id: 19,
        email: "[email protected]",
        firstName: "Didier",
        lastName: "Drogba",
        zipCode: 94111,
        isTasker: false,
        hourlyRate: null,
        hasVehicle: false,
        taskerDescription: null,
      },
      5: {
        id: 5,
        email: "[email protected]",
        firstName: "Cengiz",
        lastName: "Under",
        zipCode: 94598,
        isTasker: false,
        hourlyRate: 50,
        hasVehicle: true,
        taskerDescription: "I have 10 years of experience in moving stuff.",
      }
    },
    categories: {
      1: {
        id: 1,
        name: "Cleaning"
      },
      4: {
        id: 4,
        name: "Moving"
      }
    }
  },
  ui: {
    loading: true/false
  },
  errors: {
    login: ["Incorrect username/password combination"],
  },
  session: {
    id: 19
  }
}
Clone this wiki locally