Skip to content

Commit

Permalink
Use eventSink method reference in TimelinePresenter.kt
Browse files Browse the repository at this point in the history
Has been changed in #1172 but in general method references should always preferred to lambdas in composable functions (because they have higher stability guarantees).
  • Loading branch information
Marco Romano authored Sep 25, 2023
1 parent ee901c7 commit 30f6c76
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class TimelinePresenter @Inject constructor(
paginationState = paginationState,
timelineItems = timelineItems,
hasNewItems = hasNewItems.value,
eventSink = { handleEvents(it) }
eventSink = ::handleEvents
)
}

Expand Down

0 comments on commit 30f6c76

Please sign in to comment.