We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently you can't wrap composables with safe trace, I was able to get this working with this approach:
@Composable inline fun safeTraceComposable( crossinline label: () -> String, crossinline block: @Composable () -> Unit ) { if (!SafeTrace.isCurrentlyTracing) { block() } else { SafeTrace.beginSection(label()) block() SafeTrace.endSection() } }
I can open a PR for this if you think it would be a good addition, but didn't know how you wanted to handle depending on Compose.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently you can't wrap composables with safe trace, I was able to get this working with this approach:
I can open a PR for this if you think it would be a good addition, but didn't know how you wanted to handle depending on Compose.
The text was updated successfully, but these errors were encountered: