Skip to content

Redux State Shape

Alice Li edited this page Jul 25, 2022 · 7 revisions

SonicCloud State Shape

store = {
    session: {},
    currentUser: {
      songDetail: {
          songId: {
                  id,
                  userId: {userData of author},
                  title,
                  description,
                  album: {
                      albumId,
                      user: {userData of author}
                  }
                  comments: {
                      commentId: {
                              commentData,
                              user: {userData of author}
                      },
                  }
          }
      },
       album: {
          id: {
              albumId,
              userId: {userData of author},
              title,
              description
          },
      }
    }
}
Clone this wiki locally