Skip to content

Commit

Permalink
fix performance issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Calvin-LL committed Aug 31, 2024
1 parent 24b5d88 commit 773f456
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ fun LazyItemScope.ReorderableItem(
animateItemModifier: Modifier = Modifier.animateItemPlacement(),
content: @Composable ReorderableCollectionItemScope.(isDragging: Boolean) -> Unit,
) {
val orientation = state.orientation
val orientation = remember(state) { state.orientation }
val dragging by state.isItemDragging(key)
val offsetModifier = if (dragging) {
Modifier
Expand Down

0 comments on commit 773f456

Please sign in to comment.