Skip to content

Commit

Permalink
fix restart of result sharing when new block lambda is used
Browse files Browse the repository at this point in the history
closes #33

this can happen quite often as the lambdas may not be correctly
auto remembered
  • Loading branch information
hrach committed Feb 21, 2023
1 parent 67fe16a commit 6a20ecd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public fun <R : Any> ResultEffectImpl(
resultSerializer: KSerializer<R>,
block: (R) -> Unit,
) {
DisposableEffect(navController, block) {
DisposableEffect(navController) {
// The implementation is based on the official documentation of the Result sharing.
// It takes into consideration the possibility of a dialog usage (see the docs).
// https://developer.android.com/guide/navigation/navigation-programmatic#additional_considerations
Expand Down

0 comments on commit 6a20ecd

Please sign in to comment.