Sample State - deanmayne/marcheauxpuces GitHub Wiki


{
    entities: {
        users: {
            1: {
                id: 1,
                    name: "Dean",
                    username: "deanmayne",
                },
        },
        products: {
            1: {
                id: 1,
                name: "Eiffel Tower",
                description: "This needs no description",
                shippingCost: true / false,
                location: "Paris, FR",
                ownerId: 1,
                    },
        },
        reviews: {
            1: {
                id: 1,
                body: "unlike anything you've ever seen !",
                rating: 5,
                authorId: 1,
                productId: 1,
                    },
        },
        carts: {
            1: {
                id: 1,
                productId: 1,
                shopperId: 1,
                quantity: 1, 

                },
        },
    },

    ui: {
        loading: true / false,
            modalOpen: true / false,
        },

    session: {
        currentUserId: 1,
        },

    errors: {
        userErrors: ["Login information incorrect."],
        sessionErrors: ["Not an active user session."],
        productErrors: ["This product is no longer available."],
        reviewErrors: ["Please fill in all required review details."],
        cartErrors: ["Cart is empty !"],

        }


}