Sample State - rcrecco123/ToneFeed GitHub Wiki

Sample State

  
entities: {

    tracks: {

      1: {

        id: 1,

        title: "Track_1 by Ronald Crecco",

        authorId: 1,
    
        comments: [1]

         }

       2: {

        id: 2,

        title: "Track_2 by Ronald Crecco",

        authorId: 1,

        comments: [2]

       }

    },

    users: {

      1: {

        id: 1,

        username: "brandon_heat",

        track_ids: [1, 2],

      },

      2: {

       id: 2,

       username: "maria",

       track_ids: [],

       comment_ids: [],

      }

    }

   comments: {

      1: {

        id: 1,

        author_id: 1,

        track_id: 1,

        comments: [3]

        body: "yoooooo this is FIRE!!!!!!"

       }

      2: {

        id: 2,

        author_id: 2,

        track_id: 1,

        comments: []

        body: "decent..."

       }

      3: {

        id: 3,

        author_id: 3,

        track_id: 1,

        comments: []

        body: "right???"

       }
}

   },

  errors: {

    login: ["Invalid Username/Password"],

    comment: ["Comment cannot be blank"],

  },
   
  ui: { currentTrackPlaying: "Pink Floyd - One of my Turns" }

  session: { currentUserId: 1 }

}```