Sample State - Shelchamp/RumTumTugger GitHub Wiki

Rum Tum Tugger Sample State

{
  entities: {
    posts: {
      1: {
        id: 1,
        postType: "text",
        title: "My opinion:"
        body: "Cats are the best.",
        imageUrl: ""
        userId: 1
      },
      2: {
        id: 2,
        postType: "image",
        title: "My shoes"
        body: "",
        imageUrl: "www.imgur.com/myfancyshoeurl"
        userId: 2
      },
      3: {
        id: 3,
        postType: "text",
        title: "Mood"
        body: "Someone insulted my hair and now I'm mad",
        imageUrl: ""
        userId: 2
      }
    },
    users: {
      1: {
        id: 1,
        username: "Yoshikage Kira",
        email: "[email protected]",
        imageUrl: "",
        bio: "I just want a quiet life.",
        postIds: [1]
      },
      2: {
        id: 2,
        username: "Josuke HigaShikata",
        email: "[email protected]",
        imageUrl: "",
        bio: "I am scared of turtles.",
        postIds: [2, 3]
      }
    },
    likes: {
       1:  {
         id: 1,
         postId: 1,
         userId: 2
       },
       2:  {
         id: 2,
         postId: 2,
         userId: 2
       }  
    },
    followers: {
       1:  {
         id: 1,
         followeeId: 1,
         followerId: 2
       },
       2:  {
         id: 2,
         followeeId: 2,
         followerId: 1
       }  
    },
    tags: {       
       1:  {
         id: 1,
         tag: "unpopular opinions"
       },
       2:  {
         id: 2,
         tag: "confessions"
       },
       3:  {
         id: 3,
         tag: "turtles"
       }
    },
    taggings: {     
      1:  {
        id: 1,
        postId: 1,
        tagId: 1
      },
      2:  {
        id: 2,
        postId: 1,
        tagId: 2
      },
      3:  {
        id: 3,
        postId: 2,
        tagId: 1
      },      
      4:  {
        id: 4,
        postId: 2,
        tagId: 2
      },
      5:  {
        id: 5,
        postId: 2,
        tagId: 3
      }   
    }   
  },
  ui: {
    loading: true/false
  },
  errors: {
    login: ["Incorrect username/password combination"]
  },
  session: { 
    currentUserId: 2 
  }
}
⚠️ **GitHub.com Fallback** ⚠️