-
Notifications
You must be signed in to change notification settings - Fork 8
fix issue login navigation #692
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
Conversation
Test Results 146 files 146 suites 3m 4s ⏱️ Results for commit 78b1571. ♻️ This comment has been updated with latest results. |
| fun updateStateAfterLoggingIn() { | ||
| tryToCall( | ||
| block = { accountUseCase.getAccountDetails() }, | ||
| onSuccess = { | ||
| getMovieInFavorite() | ||
| getMovieIsRated() | ||
| }, | ||
| onError = {} | ||
| ) | ||
| updateState { | ||
| it.copy( | ||
| isRateBottomSheetOpen = false, | ||
| isRatedSuccessBottomSheetOpen = false, | ||
| isNoAccountBottomSheetOpen = false, | ||
| isAddToListBottomSheetOpen = false, | ||
| isShareBottomSheetOpen = false, | ||
| showCreateListBottomSheet = false, | ||
| ) | ||
| } | ||
| } |
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.
extract the content of onSuccess to other function
and put the updateState that at the end in the onEnd block and use for it the call by reference
Recording.2025-08-20.040333.mp4