Skip to content

Sample State

Nick edited this page Oct 1, 2020 · 2 revisions
{
   entities: {
      users: {
         1: {
            id: 1,
            username: "nickdraper8",
            email: "nick@gmail.com",
            subscriberIds: [5],
            usersSubscribedToIds: [1]
         },
         4: {
            id: 4,
            username: "dschrute",
            subscriberIds: [],
            usersSubscribedToIds: [1]
         },
         5: {
            id: 1,
            username: "bigTuna",
            subscriberIds: [1,4],
            usersSubscribedToIds: [1]
         },
      },
      videos: {
         1: {
            id: 1,
            title: "me pranking dwight",
            body: "i put his stapler in jello, lol. pls like and subscribe.",
            uploaderId: 5,
            likerIds: [1,2,3,8],
            dislikerIds: [4],
            commentIds: [1,2,3],
            numViews: 53,
            videoUrl: "<url-for-video>",
            uploadedDate: "2020-10-01T00:59:03.834Z"
         },
      },
      comments: {
         1: {
            id: 1,
            content: "i hate you jim, you will pay for this!",
            videoId: 1,
            authorId: 4,
            likerIds: [],
            dislikerIds: [5],
          },
          2: {
            id: 2,
            content: "u mad bro?",
            videoId: 1,
            authorId: 5,
            likerIds: [1,2,3],
            dislikerIds: [4],
          },
          3: {
            id: 3,
            content: "lol",
            videoId: 1,
            authorId: 4,
            likerIds: [2,3,5],
            dislikerIds: [],
          },
      },
   },
   ui: {
      filters: {
         bounds: {}  
      },
      modal: null,
   },
   errors: {
      session: ["Incorrect or invalid login credentials"],
      video: [],
   },
   session: { currentUserId: 1 }
}

Clone this wiki locally