Skip to content

Sample State

lfs48 edited this page Apr 5, 2019 · 2 revisions
{
  entities: {
    users: {
      1: {
        id: 1,
        url: 'firstuser',
        email: 'email@email.com',
        authoredPostIds: [1],
        authoredCommentIds: [1],
        likedPostIds: [1],
        followerIds: [2]
        followingIds: [2]
      },
    },
    posts: {
      1: {
        id: 1,
        authorId: 1,
        userId: 1,
        body: 'Lorem ipsum',
        type: 'text',
        likedIds: [1],
        commentIds: [1],
      },
    comments: {
      1: {
        id: 1,
        postId: 1,
        authorId: 1,
        body: 'lorem ipsum',
      },
    tags: {
        1: {
          id: 1,
          tag: 'stuff'
        },
      },
    follows: {
      1: {
        followerId: 1,
        followeeId: 2,
      },
      2: {
        followerId: 2,
        followeeId: 1,
      }
    },
  },
  ui: {
    modal: null,
    nav: null,
    postIndex: null
  },
  errors: {
    login: ["Incorrect username/password."],
  },
  session: { 
    id: 1 
  }
}
Clone this wiki locally