-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#1012] 간단한 화면에서 MVVM Like 구조 없이 상태관리할 수 있게 구조 변경 #1013
Conversation
|
a0eccc6
to
8d2b1f1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
나머지는 직접 여쭤볼게요 ㅎㅎ
inline fun <reified T> Context.findActivity(): T? { | ||
var context = this | ||
while (context is ContextWrapper) { | ||
if (context is T) { | ||
return context | ||
} | ||
context = context.baseContext | ||
} | ||
return null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
개인적으로 해당 함수에서 null
이 반환될 경우 그 이유를 JavaDoc으로 적어주시면 좋을 것 같아요! 해당 함수는 이후 기수분들도 많이 사용할 것 같아서요.
fun rememberMyPageUiState( | ||
userActiveState: UserActiveState, | ||
authRepository: AuthRepository, | ||
stampRepository: StampRepository, | ||
onRestartApp: () -> Unit | ||
): MyPageUiState { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redux Toolkit -> React Hook
What is this issue?
Screen_recording_20250105_123315.mp4
Reference