You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR #21161 changed the recommended client-side initialization pattern:
Old pattern (currently in skill):
Sentry.init() called in src/router.tsx inside getRouter()
Gated with if (!router.isServer)
tanstackRouterBrowserTracingIntegration(router) passed directly in integrations array
New pattern (from PR #21161):
Sentry.init() called in src/client.tsx at top level, before hydrateRoot()
tanstackRouterBrowserTracingIntegration(router) added separately in src/router.tsx via Sentry.addIntegration()
Rationale: Moving init to the client entry point ensures Sentry captures errors and breadcrumbs that occur before hydration (e.g., third-party library initialization errors). The previous pattern silently lost pre-hydration events.
Warning
Auto-generated from external SDK content. Review all links and code suggestions before acting on them.
cc @getsentry/support
Summary
The TanStack Start SDK skill needs updates based on recent changes in
getsentry/sentry-javascript:1. Client Initialization Pattern Change (High Priority)
PR #21161 changed the recommended client-side initialization pattern:
Old pattern (currently in skill):
Sentry.init()called insrc/router.tsxinsidegetRouter()if (!router.isServer)tanstackRouterBrowserTracingIntegration(router)passed directly in integrations arrayNew pattern (from PR #21161):
Sentry.init()called insrc/client.tsxat top level, beforehydrateRoot()tanstackRouterBrowserTracingIntegration(router)added separately insrc/router.tsxviaSentry.addIntegration()Rationale: Moving init to the client entry point ensures Sentry captures errors and breadcrumbs that occur before hydration (e.g., third-party library initialization errors). The previous pattern silently lost pre-hydration events.
Affected sections in SKILL.md:
src/router.tsxpattern)src/client.tsxsetupSentry.addIntegration()pattern2. SDK Status Update (Mechanical)
PR #21175 promoted the SDK from alpha to beta:
Current (line 22-23):
Should be:
References