-
-
Notifications
You must be signed in to change notification settings - Fork 360
A method to notify Sentry that the app is loaded #5935
Copy link
Copy link
Open
Labels
Description
Currently, the SDK uses two separate signals to mark app start end:
_setRootComponentCreationTimestampMs()— records when the root component constructor runs_captureAppStart()— records when the root component mounts (componentDidMount)
These are called automatically by ReactNativeProfiler (via Sentry.wrap) but there's also a public captureAppStart() for manual use.
A single "app is loaded" API would be useful for:
- Apps with complex initialization — Many apps do async work after mount (fetching config, auth checks, hydrating state). The current auto-detection fires too early — the user doesn't consider the app "loaded" until their splash screen is gone or their first meaningful screen renders.
- Simplifying the public API — Instead of two separate concepts (setRootComponentCreationTimestampMs + captureAppStart), one call like Sentry.appLoaded() is easier to understand and document.
- Non-standard app shells — Apps using custom navigation bootstrapping, Expo Router, or micro-frontends may not have a single "root component mount" moment. A manual signal gives them control.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Fields
Give feedbackNo fields configured for issues without a type.