Skip to content

Commit

Permalink
미사용 Composable 함수 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
Pluu committed May 6, 2023
1 parent 9dbb7a2 commit c3a6c5e
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions compose/src/main/java/com/pluu/compose/runtime/Composables.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,12 @@ package com.pluu.compose.runtime

import androidx.compose.runtime.Composable
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.snapshots.SnapshotStateList

@Composable
inline fun <T> rememberMutableStateOf(
value: T
): MutableState<T> = remember {
mutableStateOf(value)
}

@Composable
inline fun <T> rememberMutableStateOf(
key1: Any,
crossinline calculation: @androidx.compose.runtime.DisallowComposableCalls () -> T
): MutableState<T> = remember(key1) {
mutableStateOf(calculation())
}

@Composable
inline fun <T> rememberMutableStateListOf(): SnapshotStateList<T> = remember {
mutableStateListOf()
}
}

0 comments on commit c3a6c5e

Please sign in to comment.