Repository navigation
Use Hydrogen collection browse state - #520
Merged
laugharn merged 3 commits intoAug 23, 2026
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
filter.*parameters andsort_byfor collection URLsCache 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
dataSearchfrom 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
oxlint— passed, 0 warnings/errorsoxfmt— passed./node_modules/.bin/tsc --noEmit— passedpnpm build— passed; Next.js compiled successfully and generated 32/32 pages/collections/frontpage?sort_by=price-descending/collections/frontpage?filter.v.t.shopify.color-pattern=gid%3A%2F%2Fshopify%2FTaxonomyValue%2F1