Skip to content

0.0.2

Compare
Choose a tag to compare
@takahirom takahirom released this 13 Apr 07:19
· 55 commits to main since this release
81a655d

First Experimental Release

I believe we currently have basic APIs. However, if there are any additional APIs you think we need, please let me know.

fun <T : Any> rememberRetained(
    key: String? = null,
    block: @DisallowComposableCalls () -> T,
): T
fun <T> produceRetainedState(
    initialValue: T,
    producer: suspend ProduceStateScope<T>.() -> Unit,
): State<T> 
fun <T : R, R> Flow<T>.collectAsRetainedState(
    initial: R,
    context: CoroutineContext = EmptyCoroutineContext,
): State<R>
fun <T> StateFlow<T>.collectAsRetainedState(
    context: CoroutineContext = EmptyCoroutineContext
): State<T> 

Changes from 0.0.1

Set minimum sdk version to 21