Skip to content

Commit

Permalink
[FEATURE]#223 : 로그아웃 시, BaseSideEffect 처리하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongjaino committed Jan 26, 2025
1 parent 20abdaf commit edebb01
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import com.bff.wespot.entire.state.EntireSideEffect
import com.bff.wespot.entire.viewmodel.EntireViewModel
import com.bff.wespot.navigation.Navigator
import com.bff.wespot.ui.component.LoadingAnimation
import com.bff.wespot.ui.util.handleSideEffect
import com.ramcosta.composedestinations.annotation.Destination
import org.orbitmvi.orbit.compose.collectAsState
import org.orbitmvi.orbit.compose.collectSideEffect
Expand All @@ -51,6 +52,8 @@ fun AccountSettingScreen(
val action = viewModel::onAction
val state by viewModel.collectAsState()

handleSideEffect(viewModel.sideEffect)

viewModel.collectSideEffect {
when (it) {
is EntireSideEffect.NavigateToAuth -> {
Expand Down

0 comments on commit edebb01

Please sign in to comment.