Non composable extension functions are cause composition skip. Since lambdas are not remembered, using helper extension functions prevents compose runtime to skip.
Either extensions can be @Composable to bring lambda memorization to extension, or inline the semantic calls.
I preferred inline option as @Composable is not required, it can be easily removed if anyone ones to clean up.
This sample will suggest a code that wont Compose runtime can skip and wont cause performance issues.
Non composable extension functions are cause composition skip. Since lambdas are not remembered, using helper extension functions prevents compose runtime to skip.
Either extensions can be @Composable to bring lambda memorization to extension, or inline the semantic calls. I preferred inline option as @Composable is not required, it can be easily removed if anyone ones to clean up.
This sample will suggest a code that wont Compose runtime can skip and wont cause performance issues.