class ModifierNodeElement<N: Modifier.Node> { abstract fun create(): N abstract fun update(node: N) abstract fun equals(other: Any?) abstract fun hashCode(): Int ** *. */ } ModifierNodeElement
} override fun onAttach() { currentValueOf(LocalContext) } fun someMethod() { if (isAttached) { currentValueOf(LocalContext) } } } “Cannot read CompositionLocal because the Modifier node is not currently attached.” CompositionLocal の値を取得
override fun onAttach() { coroutineScope.launch{*.} } fun update() { if (isAttached) { coroutineScope.launch{*.} } } } “Cannot obtain node coordinator. Is the Modifier.Node attached?” LaunchedEffect{..}