Remove next/cache usage (use cache, cacheLife, cacheTag, cacheComponents)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F22Ms5Cxam5UHyxaCrtZzu
This commit is contained in:
Rami Bitar
2026-07-29 11:26:23 -04:00
co-authored by Claude Fable 5
parent f23332e42c
commit 1e58ba4ca4
15 changed files with 24 additions and 81 deletions
+3 -3
View File
@@ -26,9 +26,9 @@ export const metadata: Metadata = {
* `CartProvider` would create a divergent inner store vs the root-rendered
* `CartDrawer` — mutations would not reflect across them.
*
* `force-dynamic` is not allowed with `cacheComponents: true`; the root layout
* already makes every route dynamic via `cookies()`/`headers()` in the cart
* seed. Reachable via the footer `/cart` link (no-JS fallback).
* No `force-dynamic` needed; the root layout already makes every route
* dynamic via `cookies()`/`headers()` in the cart seed. Reachable via the
* footer `/cart` link (no-JS fallback).
*/
export default function CartPage() {
return (