I might be misunderstanding stability, but shouldn...
# compose
z
I might be misunderstanding stability, but shouldn't classes like ClipboardManager and ScrollbarAdapter be stable? The compiler reports that the scrollbarAdapter here is unstable
Copy code
fun VerticalScrollbarWrapper(
    scrollbarAdapter: ScrollbarAdapter,
    modifier: Modifier = Modifier,
    content: @Composable BoxScope.() -> Unit
) {
And clipboardManager here is unstable
Copy code
@Composable
private fun rememberShareButtonState(
    content: String,
    clipboardManager: ClipboardManager = LocalClipboardManager.current,
    snackbarHostState: SnackbarHostState? = LocalSnackbarHostState.current
): ShareButtonState = remember(content) {
    ShareButtonState(content, clipboardManager, snackbarHostState)
}
d
It's the compose API that is not stable, not the class itself