Function

currentCompositionErrors

Get list of errors captured in composition.

currentCompositionErrors

Source set: Common
public fun currentCompositionErrors(): List<Pair<Exception, Boolean>>

Get list of errors captured in composition. This list is only available when recomposer is in hot reload mode. Test-only API, not for use in production.

Return

pair of error and whether the error is recoverable.

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: