Skip to content

docs(react-router): Update framework guides for v11 - #19366

Merged
chargome merged 3 commits into
js-v11-docsfrom
pick-up-httpslinear.appgetsent
Sep 22, 2026
Merged

chargome merged 3 commits into
js-v11-docsfrom
pick-up-httpslinear.appgetsent

Conversation

@chargome

@chargome chargome commented Sep 11, 2026 •

Copy link
Copy Markdown
Member

DESCRIBE YOUR PR

Updates the React Router Framework docs for SDK v11: state the new 7.15 framework-mode minimum, drop the beta warnings, only describe the instrumentation API for server-side tracing, and fix the snippets that no longer build against v11.

  • Change the stated support in the page descriptions from "v7+" to "v7.15+"
  • Add a getting-started-prerequisites include for React Router that lists the 7.15.0 minimum (framework mode)
  • Drop the feature-scoped "React Router 7.15+" notes around the instrumentations export, since 7.15 is now the baseline
  • Remove the "This SDK is currently in beta" alerts from the getting started and manual setup pages
  • Import sentryReactRouter, SentryReactRouterBuildOptions, and sentryOnBuildEnd from @sentry/react-router/vite on the manual setup and Hydrogen pages
  • Fix the entry.server.tsx snippet to import ../instrument.server (the file lives in the project root, the entry in app/)
  • Move the misplaced + diff marker in the react-router.config.ts snippet so it no longer renders as a unary plus

The removed wrapServerLoader / wrapServerAction wrappers are already covered by the v10-to-v11 migration guide and aren't referenced anywhere else in the docs.

Supersedes #19314.

⚠️ Do not merge until v11 is released as stable.

Fixes https://linear.app/getsentry/issue/SDK-1466/update-react-router-minimum-version-to-715-in-docs
Fixes https://linear.app/getsentry/issue/SDK-1486/update-react-router-vite-plugin-imports-for-v11-in-docs
Fixes https://linear.app/getsentry/issue/SDK-1516/react-router-getting-started-manual-setup

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.
Select exactly one option. For deadlines, replace YYYY-MM-DD with the due date. You can update this information later by editing the PR description.

  • Urgent deadline (GA date, etc.): YYYY-MM-DD
  • Other deadline: YYYY-MM-DD
  • No deadline: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've supplied a deadline.

Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

🤖 Generated with Claude Code

https://claude.ai/code/session_01833WEY4kqAQNfbtu9Z8JLr

SDK v11 raises the React Router framework-mode minimum to 7.15. Change
the stated support from v7+ to v7.15+, add a prerequisites include that
lists the minimum version, and drop the feature-scoped 7.15 notes on the
instrumentation API now that it's the baseline. The docs only describe
the instrumentation API going forward; the removed server wrappers are
covered by the v10-to-v11 migration guide.

Refs SDK-1466
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01833WEY4kqAQNfbtu9Z8JLr
@vercel

vercel Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
sentry-docs Ready Ready Preview Sep 14, 2026 11:31am UTC
1 Skipped Deployment
Project Deployment Actions Updated
develop-docs Ignored Ignored Preview Sep 14, 2026 11:31am UTC

Request Review

@linear-code

linear-code Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

SDK-1466

SDK-1516

SDK-1486

The React Router Framework SDK leaves beta with v11. Drop the beta
warning alerts from the getting started and manual setup pages.

Refs SDK-1466
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01833WEY4kqAQNfbtu9Z8JLr
@github-actions github-actions Bot added Priority: Needs Triage The PR description is missing valid priority information and removed Priority: Normal Docs review has no urgent deadline labels Sep 14, 2026
@chargome

Copy link
Copy Markdown
Member Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit cb59921. Configure here.

@chargome
chargome requested a review from JPeer264 September 14, 2026 11:18
…h for v11

In v11 the Vite plugin exports (sentryReactRouter, sentryOnBuildEnd,
SentryReactRouterBuildOptions) moved to the @sentry/react-router/vite
subpath. Update the manual setup and Hydrogen guides to import from it.

The manual setup page creates instrument.server.mjs in the project root
but the entry.server.tsx snippet imported it from ./, which fails to
resolve from app/. Import it from ../ instead. Also move the diff marker
in the react-router.config.ts snippet to the start of the line so it no
longer renders as a unary plus.

Refs SDK-1486
Refs SDK-1516
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01833WEY4kqAQNfbtu9Z8JLr
@chargome chargome changed the title docs(react-router): Raise framework-mode minimum version to 7.15 docs(react-router): Update framework guides for v11 Sep 14, 2026
@github-actions github-actions Bot added Priority: Normal Docs review has no urgent deadline and removed Priority: Needs Triage The PR description is missing valid priority information labels Sep 14, 2026
@andreiborza
andreiborza changed the base branch from master to js-v11-docs September 22, 2026 12:14
@andreiborza
andreiborza marked this pull request as ready for review September 22, 2026 13:17
@codeowner-assignment
codeowner-assignment Bot requested a review from a team September 22, 2026 13:17

+// Automatically instruments all server loaders, actions, middleware,
+// and request handlers. Requires React Router 7.15+.
+// and request handlers.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The import path for instrument.server.mjs in the Hydrogen React Router guide is incorrect, causing server-side instrumentation to fail.
Severity: MEDIUM

Suggested Fix

In docs/platforms/javascript/guides/cloudflare/frameworks/hydrogen-react-router.mdx, change the import statement from import "./instrument.server"; to import "../instrument.server"; to correctly point to the file located in the project's root directory.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location: docs/platforms/javascript/guides/react-router/manual-setup.mdx#L265

Potential issue: The pull request updates the import path for `instrument.server.mjs` in
`manual-setup.mdx` to `../instrument.server` to reflect its location in the project
root. However, it fails to apply the same fix to the `hydrogen-react-router.mdx` guide.
This guide still instructs users to import the file using `import
"./instrument.server";` from `app/entry.server.tsx`. This relative path is incorrect, as
the file is not in the `app/` directory, leading to a failed import and preventing
Sentry from being initialized on the server for users following this guide.

Also affects:

  • docs/platforms/javascript/guides/cloudflare/frameworks/hydrogen-react-router.mdx

Did we get this right? 👍 / 👎 to inform future reviews.

@chargome
chargome merged commit 73beac7 into js-v11-docs Sep 22, 2026
29 checks passed
@chargome
chargome deleted the pick-up-httpslinear.appgetsent branch September 22, 2026 13:23

This branch was successfully deployed

1 active deployment
Preview – sentry-docs — 8b2516d7 Deployed Sep 14, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

js-v11-docs Priority: Normal Docs review has no urgent deadline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants