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

@nicohrubec nicohrubec 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

vercel Bot commented Jun 9, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview, Comment Jun 9, 2026 12:52pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview Jun 9, 2026 12:52pm

Request Review

@nicohrubec nicohrubec force-pushed the nh/external-file-client-init branch 2 times, most recently from b62cfcd to b364801 Compare June 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 nicohrubec force-pushed the nh/external-file-client-init branch from b364801 to c281c1f Compare June 9, 2026 12:41
@nicohrubec nicohrubec marked this pull request as ready for review June 9, 2026 12:41
@nicohrubec nicohrubec requested a review from andreiborza June 9, 2026 12:41

@andreiborza andreiborza 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 master Jun 9, 2026
21 checks passed
@nicohrubec nicohrubec deleted the nh/external-file-client-init branch June 9, 2026 12:55
Sign up for free to 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