Skip to content

docs(tanstackstart-react): Initialize Sentry from a dedicated client init file - #18324

Merged
nicohrubec merged 1 commit into
masterfrom
nh/external-file-client-init
Jun 9, 2026
Merged

docs(tanstackstart-react): Initialize Sentry from a dedicated client init file#18324
nicohrubec merged 1 commit into
masterfrom
nh/external-file-client-init

Conversation

@nicohrubec

@nicohrubecnicohrubec commented Jun 9, 2026

Copy link
Copy Markdown
Member

Moves the client Sentry.init() into a dedicated src/instrument.client.ts file that is imported first in the client entry point. Importing it first ensures Sentry initializes before any other import's side effects (and before hydration).

SDK PR: getsentry/sentry-javascript#21397

@vercel

vercelBot commented Jun 9, 2026

Copy link
Copy Markdown

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

ProjectDeploymentActionsUpdated (UTC)
sentry-docsReadyReadyPreview, CommentJun 9, 2026 12:52pm
1 Skipped Deployment
ProjectDeploymentActionsUpdated (UTC)
develop-docsIgnoredIgnoredPreviewJun 9, 2026 12:52pm

Request Review

@nicohrubec
nicohrubecforce-pushed the nh/external-file-client-init branch 2 times, most recently from b62cfcd to b364801CompareJune 9, 2026 12:38
…init file
Move the client Sentry.init() into a dedicated src/instrument.client.ts file
imported first in the client entry, matching the React setup. This ensures Sentry
initializes before any other import's side effects (and before hydration).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@nicohrubec
nicohrubecforce-pushed the nh/external-file-client-init branch from b364801 to c281c1fCompareJune 9, 2026 12:41
@nicohrubec
nicohrubec marked this pull request as ready for review June 9, 2026 12:41

@andreiborzaandreiborza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's also update onboarding, lgtm!

@nicohrubec
nicohrubec merged commit 4af8190 into masterJun 9, 2026
21 checks passed
@nicohrubec
nicohrubec deleted the nh/external-file-client-init branch June 9, 2026 12:55
Sign up for freeto 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.

2 participants

@nicohrubec@andreiborza