Skip to content

Store State

Kian Seyedjafari edited this page Jan 31, 2024 · 25 revisions

Redux Store Shape

Store = {
  Session: {isAuth: Boolean, user: {userData}},

  Cart: {CartData}

  Products: {
     allProducts: [productId]: {productData, productImages: productImagesData},
     //Might not need singleProduct
     singleProduct: {productData}
  },
  Orders: {
     allOrders: {[orderId]: {orderData}},
     singleOrder: {orderData}
  		
  },
  Designs: {
     isLoaded: Boolean, 
     allDesigns: [designId]: {designData}, 
     userDesigns: null, 
  },
  Batches: {
     isLoaded: Boolean, 
     allBatches: {[batchId]: batchData}, 
     singleBatch: {batchData}
  },
  

Clone this wiki locally