Implementing a Medusa Cart That Does Not Lose Items
Cart persistence, the guest-to-customer merge, inventory races and optimistic UI. The cart problems that only appear in production, and how to avoid them.
Cart persistence, the guest-to-customer merge, inventory races and optimistic UI. The cart problems that only appear in production, and how to avoid them.
The dashboard is a React app you can extend. Injecting widgets into existing pages, adding new routes, and the conventions that keep extensions from looking bolted on.
Not a feature grid written by someone selling one of them. Where Shopify genuinely wins, where Medusa does, and the revenue point where the maths flips.
How Medusa's event bus works, when a subscriber is the right tool instead of a workflow step, and the retry semantics you need to design around.
When a module should become a plugin, how the package is structured, and what changes when your code has to run in someone else's application.
The SDK is thin on purpose. What it handles, how authentication differs between store and admin, and why the fields parameter is the difference between a fast storefront and a slow one.
Catalog, customers, orders, subscriptions and the redirect map that decides whether you keep your rankings. A working plan for moving off Shopify, from people who have done it.
Everything in Medusa is resolved from a container. What is registered, how scoping works per request, and how to avoid the two mistakes that cause leaks.
Server components, caching, cart state and the rendering decisions that determine whether your storefront is fast. The architecture we use on every Medusa build.
The decision framework, the sequence, the costs and the failure modes. A platform-agnostic guide to moving an existing store onto Medusa without breaking revenue.
Modules cannot reference each other's tables, so how do you attach a brand to a product? Links — and the query layer that reads across them.
Workflows are how Medusa keeps multi-step commerce operations from leaving your data half-written. How steps and compensation work, and how to build one properly.