Skip to content

Use Hydrogen collection browse state - #520

Merged
laugharn merged 3 commits into
release/2026-08-23-hydrogenfrom
feat/hydrogen-collection-browse
Aug 23, 2026
Merged

laugharn merged 3 commits into
release/2026-08-23-hydrogenfrom
feat/hydrogen-collection-browse

Conversation

@laugharn

@laugharn laugharn commented Aug 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • use Hydrogen's collection store and reconciler for optimistic collection filter/sort intent
  • keep Shopify's live Server Component response authoritative for products, facets, counts, and pagination
  • use Liquid-compatible repeated filter.* parameters and sort_by for collection URLs
  • preserve the static collection header and add a geometry-matching fallback around the request-driven browse section
  • keep search results on their existing URL/state model

Cache Components and data fidelity

The Hydrogen store owns browse intent only. Each change still navigates through the collection route and reads products/facets live from Shopify. The provider receives dataSearch from the completed RSC response and does not settle its loading state until that server snapshot matches the current URL. This keeps optimistic controls responsive without treating predicted product data as authoritative or pulling the collection header out of the static shell.

Verification

  • focused oxlint — passed, 0 warnings/errors
  • focused oxfmt — passed
  • ./node_modules/.bin/tsc --noEmit — passed
  • pnpm build — passed; Next.js compiled successfully and generated 32/32 pages
  • runtime smoke tests returned HTTP 200 for Hydrogen collection URLs including:
    • /collections/frontpage?sort_by=price-descending
    • /collections/frontpage?filter.v.t.shopify.color-pattern=gid%3A%2F%2Fshopify%2FTaxonomyValue%2F1

@vercel

vercel Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
shop-docs Ready Ready Preview, v0 Aug 23, 2026 3:59pm
shop-template Ready Ready Preview, v0 Aug 23, 2026 3:59pm

@laugharn
laugharn marked this pull request as ready for review August 23, 2026 16:01
@laugharn
laugharn changed the base branch from main to release/2026-08-23-hydrogen August 23, 2026 17:10
@laugharn
laugharn merged commit 11d31b2 into release/2026-08-23-hydrogen Aug 23, 2026
7 checks passed
@laugharn
laugharn deleted the feat/hydrogen-collection-browse branch September 18, 2026 21:54

This branch was successfully deployed

2 active deployments
Preview – shop-docs — df06b11f Deployed Aug 23, 2026 by vercel[bot]
Preview – shop-template — df06b11f Deployed Aug 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant