Closed carpad88 closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
nuxt-medusa | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Apr 14, 2023 5:41am |
Hey,
Thanks so much for this!
I will take a look in the upcoming hours and release it to the docs :)
Types of changes
Description
I added some examples on the docs to manage Medusa cart initialization by using
localstorage
andcookies
on client side, orcookies
on server side.Medusa's cart object can get very complex once users start adding products or items to it. Saving all that information in
localstorage
can become a nightmare. A better approach is to save only thecart_id
. Later on, users can use thecart_id
to retrieve the cart information usingnuxt-medusa
module.This PR is related to #15.
Checklist: