Skip to content

Commit

Permalink
fix(ComposeNavigator): Fix compilation error in observeResult
Browse files Browse the repository at this point in the history
  • Loading branch information
static-var committed Feb 17, 2023
1 parent a5a8d58 commit 805d0ce
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ class PraxisCloneComposeNavigator @Inject constructor(): ComposeNavigator() {
?: navController.currentBackStackEntry

backStackEntry?.savedStateHandle?.let { savedStateHandle ->
savedStateHandle.getLiveData<T?>(key)
savedStateHandle.getLiveData<T>(key)
.asFlow()
.filter { it != null }
.onEach {
// Nullify the result to avoid resubmitting it
savedStateHandle.set(key, null)
savedStateHandle[key] = null
}
} ?: emptyFlow()
}
Expand Down

0 comments on commit 805d0ce

Please sign in to comment.