Skip to content

Cart data query optimization #204

@AndrewLester

Description

@AndrewLester

Reducing the number of queries for the user's cart is an elaborate problem. My idea was to use the fact that a query is made to add items to a user's cart from the menu page. We can respond to this with the user's cart data so that the following redirection to the cart page will already have the necessary cart data, and doesn't have to make another request for the user's cart. If the cart page is being viewed not following a cart item add, then then the cart data must be fetched. Passing data from the cart item add to the cart page can be done using a store.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions