Skip to content
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

๐Ÿ”— :: (#657) ์‹ ์ฒญํ™”๋ฉด ์ž”๋ฅ˜์‹ ์ฒญํ•˜๊ธฐ ํƒœ๊ทธ ์—…๋ฐ์ดํŠธ ์•ˆ๋จ #689

Conversation

parkuiery
Copy link
Member

๊ฐœ์š”

์‹ ์ฒญํ™”๋ฉด ํƒœ๊ทธ ์—…๋ฐ์ดํŠธ ๋กœ์ง์„ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค

์ž‘์—…์‚ฌํ•ญ

์ถ”๊ฐ€ ๋กœ ํ•  ๋ง

@parkuiery parkuiery added refactor ์ฝ”๋“œ ๋ฆฌํŒฉํ† ๋ง ํ•  ๊ฒฝ์šฐ ๐Ÿ‘พbug ๋ฒ„๊ทธ๊ฐ€ ๋ฐœ์ƒํ•œ ๊ฒฝ์šฐ labels Jun 7, 2024
@parkuiery parkuiery requested a review from JunJaBoy June 7, 2024 06:05
@parkuiery parkuiery self-assigned this Jun 7, 2024
Comment on lines 147 to 151
visible = appliedTitle != null,
enter = slideInVertically() + fadeIn(),
exit = slideOutVertically() + fadeOut(),
) {
if (appliedTitle != null) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AnimatedVisibility์—์„œ false๋ฉด ๋ฐ‘์— if๋ฌธ์ด ์˜๋ฏธ ์—†๋Š”๊ฑฐ ์•„๋‹Œ๊ฐ€์š”?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ํ˜น์‹œ ์–ด๋””๊ฐ€ false๋ผ๊ณ  ๋ง์”€ํ•˜์‹œ๋Š” ๊ฑด๊ฐ€์š”?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ฝ”๋“œ ํ•œ ๋ฒˆ ํ•ด์„ํ•ด๋ณด์‹œ์ฃ 

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค

Comment on lines 26 to 33

override fun onCreate(owner: LifecycleOwner) {
super.onCreate(owner)
viewModelScope.launch {
fetchAppliedStudyRoom()
fetchAppliedRemainsOption()
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

init ๋Œ€์‹  oncreate๋ฅผ ๋„ฃ์œผ์‹  ์ด์œ ๊ฐ€ ์žˆ๋‚˜์š”? LIfeCycleOwner๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ ๊ฐ™์ง€ ์•Š์€๋ฐ..

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

init์„ ์‚ฌ์šฉํ•˜๋ฉด ์‹ ์ฒญ์„ ํ•˜๊ณ  ๋’ค๋กœ๋Œ์•„๊ฐ€๊ธฐ๋ฅผ ํ–ˆ์„ ๋•Œ ํƒœ๊ทธ๊ฐ€ ์—…๋ฐ์ดํŠธ๊ฐ€ ๋˜์ง€ ์•Š์•„ ์ƒ๋ช…์ฃผ๊ธฐ๋ฅผ ์ด์šฉํ•˜์—ฌ onCreate ๋  ๋•Œ๋งˆ๋‹ค ์—…๋ฐ์ดํŠธ ํ•˜๋„๋ก ๋งŒ๋“ค์—ˆ์Šต๋‹ˆ๋‹ค.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์Œ.. ์ด๋ ‡๊ฒŒ ๊ตฌํ˜„ํ•˜๋Š” ๊ฒƒ๋„ ๊ดœ์ฐฎ์ง€๋งŒ ์‹ ์ฒญ ํŽ˜์ด์ง€์—์„œ onDisposeํ•  ๋•Œ ์‹ ์ฒญ ์ƒ์„ฑ/์ทจ์†Œ/๋ณ€๊ฒฝ ์ด๋ฒคํŠธ๋ฅผ ๋„˜๊ฒจ์ฃผ๊ณ  ์ด ํŽ˜์ด์ง€์—์„œ ๊ธฐ์กด ์ƒํƒœ์™€ ๋น„๊ตํ–ˆ์„ ๋•Œ ๋ณ€๊ฒฝ์ด ์žˆ์„๋•Œ๋งŒ ์„œ๋ฒ„์—์„œ ๊ฐ’์„ ์กฐํšŒํ•˜๋Š”๊ฒŒ ๋” ํšจ์œจ์ ์ผ ๊ฒƒ ๊ฐ™์€๋ฐ ์–ด๋–ป๊ฒŒ ์ƒ๊ฐํ•˜์„ธ์š”?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ข‹์€๊ฑฐ ๊ฐ™์Šต๋‹ˆ๋‹ค.
๊ทผ๋ฐ ์ด ๊ธฐ๋Šฅ์„ ๋นจ๋ฆฌ ์‚ฌ์šฉํ•ด์•ผ ํ•ด์„œ ์šฐ์„  ๋จธ์ง€ํ•˜๊ณ  ๋‚˜์ค‘์— ๋ฆฌํŽ™ํ† ๋ง ํ•˜๋Š”์ชฝ์œผ๋กœ ํ•ด๋„ ๋ ๊นŒ์š”?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ข‹์Šต๋‹ˆ๋‹ค ๐Ÿ˜Ž
TODO ์ด์Šˆ ๋‚จ๊ฒจ์ฃผ์„ธ์š”

@parkuiery parkuiery requested a review from JunJaBoy June 8, 2024 08:00
vertical = PaddingDefaults.Small,
),
) {
Text(text = appliedTitle!!)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ด๊ฑฐ ์‹คํ–‰ ํ•ด๋ณด์…จ๋‚˜์š”? ํ„ฐ์งˆ ๊ฒƒ ๊ฐ™์€๋ฐ

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์œ„ animatedvisibility๊ฐ€ visible์ด๋“  ์•„๋‹ˆ๋“ (appliedTitle์ด null์ด๋“  ์•„๋‹ˆ๋“ ) ์ด ๋ฐ‘์— ๋ธ”๋Ÿญ์€ ์‹คํ–‰๋  ๊ฒƒ ๊ฐ™์•„์š”

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค

Comment on lines 26 to 33

override fun onCreate(owner: LifecycleOwner) {
super.onCreate(owner)
viewModelScope.launch {
fetchAppliedStudyRoom()
fetchAppliedRemainsOption()
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์Œ.. ์ด๋ ‡๊ฒŒ ๊ตฌํ˜„ํ•˜๋Š” ๊ฒƒ๋„ ๊ดœ์ฐฎ์ง€๋งŒ ์‹ ์ฒญ ํŽ˜์ด์ง€์—์„œ onDisposeํ•  ๋•Œ ์‹ ์ฒญ ์ƒ์„ฑ/์ทจ์†Œ/๋ณ€๊ฒฝ ์ด๋ฒคํŠธ๋ฅผ ๋„˜๊ฒจ์ฃผ๊ณ  ์ด ํŽ˜์ด์ง€์—์„œ ๊ธฐ์กด ์ƒํƒœ์™€ ๋น„๊ตํ–ˆ์„ ๋•Œ ๋ณ€๊ฒฝ์ด ์žˆ์„๋•Œ๋งŒ ์„œ๋ฒ„์—์„œ ๊ฐ’์„ ์กฐํšŒํ•˜๋Š”๊ฒŒ ๋” ํšจ์œจ์ ์ผ ๊ฒƒ ๊ฐ™์€๋ฐ ์–ด๋–ป๊ฒŒ ์ƒ๊ฐํ•˜์„ธ์š”?

@parkuiery parkuiery requested a review from JunJaBoy June 11, 2024 06:32
Comment on lines 26 to 33

override fun onCreate(owner: LifecycleOwner) {
super.onCreate(owner)
viewModelScope.launch {
fetchAppliedStudyRoom()
fetchAppliedRemainsOption()
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ข‹์Šต๋‹ˆ๋‹ค ๐Ÿ˜Ž
TODO ์ด์Šˆ ๋‚จ๊ฒจ์ฃผ์„ธ์š”

Comment on lines +146 to +151
AnimatedVisibility(
visible = appliedTitle != null,
enter = slideInVertically() + fadeIn(),
exit = slideOutVertically() + fadeOut(),
) {
if(appliedTitle!= null) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ํ  ๊ฒฐ๊ตญ ์›์ƒ๋ณต๊ท€๊ตฐ์š”..

@parkuiery parkuiery merged commit d30195c into develop Jun 12, 2024
1 check passed
@parkuiery parkuiery deleted the fix/657-์‹ ์ฒญํ™”๋ฉด-์ž”๋ฅ˜์‹ ์ฒญํ•˜๊ธฐ-ํƒœ๊ทธ-์—…๋ฐ์ดํŠธ-์•ˆ๋จ branch June 12, 2024 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
๐Ÿ‘พbug ๋ฒ„๊ทธ๊ฐ€ ๋ฐœ์ƒํ•œ ๊ฒฝ์šฐ refactor ์ฝ”๋“œ ๋ฆฌํŒฉํ† ๋ง ํ•  ๊ฒฝ์šฐ
Projects
None yet
2 participants