Skip to content

Sample State

aaxzheng edited this page Nov 9, 2018 · 7 revisions
{
 entities: {
    notes: {
      1: {
        id: 1,
        body: "Do the sheep count sheep when they sleep?",
        notebook_id: 1,
        tag_id:[1,2]
      },
      2: {
        id: 2,
        body: “Once upon a time, I dreamt I was a butterfly, fluttering hither and thither, to all intents and 
        purposes a butterfly. I was conscious only of my happiness as a butterfly, unaware that I was myself. 
        Soon I awaked, and there I was, veritably myself again. Now I do not know whether I was then a man 
        dreaming I was a butterfly, or whether I am now a butterfly, dreaming I am a man.”
        notebook_id: 1,
        tag_id:[1]
      },
      3: {
        id: 3,
        body: "Double check my proposal!",
        user_id: 1,
        notebook_id: 2
        tag_id:[3]
      }
    },
    users: {
      1: {
        id: 1,
        username: "aaronzhe"
      }
    }
   notebooks: {
     1: { 
       id: 1,
       title: "Showerthoughts"
     },
     2: { 
       id: 2,
       title: "AppAcademy Notes"
     }
   }
  tags: {
    1: {
      id: 1,
      tag: "philosophy", 
      note_id: [1,2]
    },
    2: {
      id: 2,
      tag: "whimsical", 
      note_id: [1]
    },
    3: {
      id: 3, 
      tag: "coding",
      note_id: [3]
    }
  }
 }
 ui: {
    loading: true/false
  },
  errors: {
    login: ["Incorrect username/password combination"]
  },
  session: { currentUserId: 1 }
 
}
 

Clone this wiki locally