3 Commits

Author SHA1 Message Date
Franco May
cf3c0be0f3 Fix: Move useOptimistic to provider level for consistent cart state
- Move useOptimistic from useCart hook to CartProvider
- Create single shared optimistic cart instance
- Eliminate lag between cart operations and UI updates
- Ensure all components see consistent cart state
2025-07-01 10:50:53 +02:00
Lee Robinson
7f8f9ff1a3 use cache 2025-02-09 11:38:22 -06:00
Lee Robinson
9a4c995bb6
Make image, variant, and cart updates faster with useOptimistic (#1365) 2024-07-28 22:58:59 -05:00