chore: rememberCallback for swipe gesture begin
This commit is contained in:
parent
64307b5526
commit
d7e7317635
@ -316,7 +316,7 @@ class PostListScreen : Screen {
|
|||||||
DismissValue.Default -> Color.Transparent
|
DismissValue.Default -> Color.Transparent
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onGestureBegin = {
|
onGestureBegin = rememberCallback(model) {
|
||||||
model.reduce(PostListMviModel.Intent.HapticIndication)
|
model.reduce(PostListMviModel.Intent.HapticIndication)
|
||||||
},
|
},
|
||||||
onDismissToStart = rememberCallback(model) {
|
onDismissToStart = rememberCallback(model) {
|
||||||
|
@ -333,7 +333,7 @@ class ExploreScreen : Screen {
|
|||||||
DismissValue.Default -> Color.Transparent
|
DismissValue.Default -> Color.Transparent
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onGestureBegin = {
|
onGestureBegin = rememberCallback(model) {
|
||||||
model.reduce(ExploreMviModel.Intent.HapticIndication)
|
model.reduce(ExploreMviModel.Intent.HapticIndication)
|
||||||
},
|
},
|
||||||
onDismissToStart = rememberCallback(model) {
|
onDismissToStart = rememberCallback(model) {
|
||||||
|
@ -261,7 +261,7 @@ class MultiCommunityScreen(
|
|||||||
DismissValue.Default -> Color.Transparent
|
DismissValue.Default -> Color.Transparent
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onGestureBegin = {
|
onGestureBegin = rememberCallback(model) {
|
||||||
model.reduce(MultiCommunityMviModel.Intent.HapticIndication)
|
model.reduce(MultiCommunityMviModel.Intent.HapticIndication)
|
||||||
},
|
},
|
||||||
onDismissToStart = {
|
onDismissToStart = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user