-
Notifications
You must be signed in to change notification settings - Fork 2
Store State
Kian Seyedjafari edited this page Jan 31, 2024
·
25 revisions
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}
},