Composable Core course labs now use Next.js 16.4
The Composable Core course labs now match version 1.1.0 of the lab repository, which upgrades the Next.js storefront to Next.js 16.4.6 and adopts current React and Next.js patterns.
- Form actions: Add to Cart, registration, login, and logout now submit through
<form action>with React’suseActionState, replacing click and submit handlers with manually tracked loading state. - Generated route types: Category and product pages use Next.js’s generated
PagePropstypes, and the root layout usesLayoutProps, instead of hand-written prop types. - Cookie handling: The mini-cart and
getCurrentCustomer()no longer delete invalid cookies while rendering, because Next.js only allows modifying cookies in Server Functions and Route Handlers. The secure cookie prefix is corrected to__Secure-. - Server-only modules: The GraphQL client, cookie helpers, and
getCurrentCustomer()are markedserver-onlyso they can’t be bundled into client code. - Cache Components callouts: The lab project turns off the
cacheComponentsandpartialPrefetchingoptions that new Next.js projects enable by default. New callouts explain where a project with these options enabled would need<Suspense>boundaries for uncached fetches and runtime data such asparams,searchParams, and cookies. - Node.js version: The labs require Node.js 20 or later, and the lab repository defaults to Node.js 22.
For details, see the Composable Core course.
Storefront Foundations course covers Catalyst 1.15
The Catalyst lab in the Storefront Foundations course now builds on Catalyst 1.15.0 and follows current Catalyst conventions for streaming and theming.
- Install command: The Catalyst lab setup now installs
catalyst-makeswift@1.15.0. - Streamed subcategory data: The subcategory listing lab now streams its GraphQL query with
StreamableandStream, usingProductListSkeletonas the loading state, instead of awaiting the query before the page renders. - Category page content preserved: The subcategory list now replaces only the product grid instead of the whole page, so Makeswift content slots and the
CategoryViewedanalytics event still render on categories with subcategories. - Theme color convention: The lab’s custom color variables now store bare HSL values and wrap them in
hsl()where they’re used, matching Catalyst’s own theme variables. - Simplified card styling: The lab no longer overrides the card border radius.
For details, see Lab - Add a Subcategory Listing in Catalyst.