Repository navigation
refactor: move to React Router data router - #303
Open
Tomahawk2191 wants to merge 4 commits into
Open
Tomahawk2191 wants to merge 4 commits into
Tomahawk2191 wants to merge 4 commits into
Conversation
✅ Deploy Preview for generatenu-website ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Tomahawk2191
marked this pull request as ready for review
November 14, 2026 20:27
…ve Sanity outages, add HydrateFallback
Tomahawk2191
force-pushed
the
refactor/data-router
branch
from
November 14, 2026 20:35
21407b2 to
4414172
Compare
This branch has not been 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.
What was the ticket?
N/A
What did I do?
Part 3 of 5. Stack: #301 → #302 → #303 → #304 → #305. Review and merge in order.
Moves from
<BrowserRouter>+useRoutesto a data router (createBrowserRouter+RouterProvider) defined insrc/router.tsx.App.tsx,ExternalRedirectandScrollToTop. ARootlayout route renders the<Outlet />and<ScrollRestoration />, withRootErroras the error element andRootHydrateFallbackwhile the first loader runs.*route's loader looks up the path in Sanity andredirects if it matches; otherwise it renders the landing page. Matching ignores case and trailing slashes, and a failed Sanity lookup falls through to the landing page instead of erroring./aboutredirects to/from its loader.ExpandedTeamsPagereads the team fromuseParams()(/teams-expanded/:team) instead of parsingwindow.locationand nesting<Routes>.How did I test it?
Ran
bun run lint,bun run typecheck,oxfmt --checkandbun run buildon this branch; all pass. e2e and manual browser testing still to do.Required checks:
What could go wrong in the future? What parts of your code should the reviewer pay the most attention to?
/positions/:idroute is dropped; only/positions/:categoryType/:indexremains. Nothing in the app links to the old form, but any external links to it now land on the landing page.teams) will never redirect.Additional Comments for the Reviewers
Screenshots
N/A, no visual changes intended.