Skip to content

Sample State

Yu-Jen Chang edited this page Apr 3, 2018 · 7 revisions

Sample State

{
  entities: {
    users: {
      1: {
        id: 1,
        username: "demobot"
      }
    },
    notes: {
      1: {
        id: 1
        title: "Coding Note - W7D4",
        body: "Redux is so fun",
        notebookId: 1,
        userId: 1
      }
    },
    notebooks: {
      1: {
        id: 1,
        title: "Coding Journal",
        userId: 1
      }
    },
    tags: {
      1: {
        id: 1,
        name: "CodeIsLife",
      }
    },
    taggings: {
      1: {
        id: 1,
        noteId: 1,
        tagId: 1
      }
    }
  },
  ui: {
    loading: true/false
  },
  errors: {
    login: ["Incorrect username/password combination"],
    noteForm: ["Note body cannot be blank"],
  },
  session: {
    id: 57,
    username: "iAmNotBot",
  }
}

Clone this wiki locally