Property

LocalCompositionErrorContext

Used to attach a compose stack trace to a throwable based on a location of compose node in composition.

Source set: Common
public val LocalCompositionErrorContext: CompositionLocal<CompositionErrorContext?> =
    staticCompositionLocalOf {
        null
    }

Used to attach a compose stack trace to a throwable based on a location of compose node in composition. This context is expected to be used by custom node implementations to attach diagnostic compose stack traces to exceptions in passes that are not handled by the Compose runtime (example: measure / layout / draw in Compose UI).

Compose runtime automatically appends information about exceptions that happen in composition and effects.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: