chore: sync react router template with example - #3929
Draft
fredericoo wants to merge 30 commits into
Draft
Conversation
fredericoo
force-pushed
the
fb-react-router-template-refresh-preview
branch
from
August 11, 2026 18:08
8fb9104 to
1caafdb
Compare
Assisted-By: devx/bf421943-f843-4961-b8a8-dda9832dc219
Assisted-By: devx/824b8448-3a43-40c7-95aa-03e53d4e9683
Assisted-By: devx/824b8448-3a43-40c7-95aa-03e53d4e9683
fredericoo
force-pushed
the
fb-react-router-template-refresh-preview
branch
from
August 12, 2026 13:20
1caafdb to
66642c1
Compare
Assisted-By: devx/824b8448-3a43-40c7-95aa-03e53d4e9683
Assisted-By: devx/824b8448-3a43-40c7-95aa-03e53d4e9683
Assisted-By: devx/824b8448-3a43-40c7-95aa-03e53d4e9683
andguy95
reviewed
Aug 12, 2026
andguy95
reviewed
Aug 12, 2026
andguy95
reviewed
Aug 12, 2026
andguy95
reviewed
Aug 12, 2026
fredericoo
commented
Aug 12, 2026
fredericoo
commented
Aug 12, 2026
fredericoo
commented
Aug 12, 2026
fredericoo
commented
Aug 12, 2026
fredericoo
commented
Aug 12, 2026
fredericoo
commented
Aug 12, 2026
fredericoo
commented
Aug 12, 2026
fredericoo
commented
Aug 12, 2026
fredericoo
commented
Aug 12, 2026
fredericoo
commented
Aug 13, 2026
fredericoo
commented
Aug 13, 2026
fredericoo
commented
Aug 13, 2026
fredericoo
commented
Aug 13, 2026
fredericoo
commented
Aug 13, 2026
fredericoo
commented
Aug 13, 2026
fredericoo
commented
Aug 13, 2026
fredericoo
commented
Aug 13, 2026
fredericoo
commented
Aug 13, 2026
fredericoo
commented
Aug 13, 2026
Assisted-By: devx/899d707e-e729-46de-a04c-49ad1774ca15
Assisted-By: devx/899d707e-e729-46de-a04c-49ad1774ca15
Assisted-By: devx/899d707e-e729-46de-a04c-49ad1774ca15
Assisted-By: devx/899d707e-e729-46de-a04c-49ad1774ca15
Assisted-By: devx/899d707e-e729-46de-a04c-49ad1774ca15
Assisted-By: devx/899d707e-e729-46de-a04c-49ad1774ca15
Assisted-By: devx/899d707e-e729-46de-a04c-49ad1774ca15
Assisted-By: devx/899d707e-e729-46de-a04c-49ad1774ca15
Assisted-By: devx/899d707e-e729-46de-a04c-49ad1774ca15
# Conflicts: # templates/react-router/app/lib/shop.ts # templates/react-router/app/root.tsx # templates/react-router/app/tokens.css
Assisted-By: devx/899d707e-e729-46de-a04c-49ad1774ca15
Assisted-By: devx/899d707e-e729-46de-a04c-49ad1774ca15
Assisted-By: devx/899d707e-e729-46de-a04c-49ad1774ca15
Assisted-By: devx/899d707e-e729-46de-a04c-49ad1774ca15
Assisted-By: devx/899d707e-e729-46de-a04c-49ad1774ca15
Assisted-By: devx/899d707e-e729-46de-a04c-49ad1774ca15
Assisted-By: devx/899d707e-e729-46de-a04c-49ad1774ca15
Assisted-By: devx/899d707e-e729-46de-a04c-49ad1774ca15
Assisted-By: devx/899d707e-e729-46de-a04c-49ad1774ca15
Assisted-By: devx/899d707e-e729-46de-a04c-49ad1774ca15
Assisted-By: devx/899d707e-e729-46de-a04c-49ad1774ca15
Assisted-By: devx/899d707e-e729-46de-a04c-49ad1774ca15
Assisted-By: devx/899d707e-e729-46de-a04c-49ad1774ca15
Assisted-By: devx/899d707e-e729-46de-a04c-49ad1774ca15
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.
TL;DR: Refreshes the standalone React Router template from the current example and keeps it deployable to Oxygen without monorepo dependencies.
Before
templates/react-routerhad drifted fromexamples/react-routerand was missing newer storefront routes, cart behaviour, predictive search, Customer Accounts, and SEO resource routes.After
The template now uses the current React Router example as its source, with an Oxygen Worker runtime. The source template stays on the workspace (
workspace:*, pnpm, no lockfile); the release flow pins the@shopify/hydrogenpreview version and generates an npm lockfile in the distributed copy only.What this changes
examples/react-router.waitUntilcontext.Developer impact
No changeset. This updates a standalone preview template and repo-local conversion documentation; it does not change a published package API.
UX impact
The template gains the newer product, collection, search, cart, account, consent, and accessibility behaviour from the React Router example.
Risk
How to Test
pnpm installfrom the repository root.pnpm devintemplates/react-routerwith no.envfile and openhttp://localhost:5173.pnpm previewintemplates/react-routerand confirm the same routes render through the built Mini Oxygen Worker..env.example, deploy to Oxygen, and verify account login/logout.