Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- android compose stable
- android.view.WindowManager.BadTokenException
- onIntercepterTouchEvent
- Could not find method
- LaunchedEffect vs rememberCoroutineScope
- [databinding]
- databinding xml
- rememberCoroutineScope
- 안드로이드 다이얼로그 오류
- Android
- 안드로이드
- Python
- LaunchedEffect
- @stable
- @immutable
- {"msg":"cannot find method
- android mvi
- databinding error
- effect api
- isFinishing()
- compose side-effect
- @provides @binds 차이
- android compose
- 힐트
- material3
- 터치이벤트 순서
- dispatchTouchEvent
- Java
- 레트로핏
- WindowManager$BadTokenException
Archives
- Today
- Total
목록compose side-effect (1)
개발관련일지
android compose LaunchedEffect, rememberCoroutineScope 학습정리
composable은 순수함수 처럼 사용하기위해서 (f(state) = view) side effect가 없는게 좋지만 필요한 경우에는 생명주기를 인식하고 관리되는 환경에서 시행되야함 -> 이걸 도와주는게 Effect API이다. LaunchedEffect 컴포저블내에서 suspend fun을 안전하게 실행해준다. @Composable @NonRestartableComposable @OptIn(InternalComposeApi::class) fun LaunchedEffect( key1: Any?, block: suspend CoroutineScope.() -> Unit ) { val applyContext = currentComposer.applyCoroutineContext remember(key1) ..
개발기록/안드로이드
2023. 7. 27. 00:55