Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a test to confirm there's no unnecessary recompositions #1729

Merged
merged 2 commits into from
Dec 6, 2023

Conversation

swankjesse
Copy link
Collaborator

Also expose the size of the preload window in
LazyListState. It should be possible for the
application layer to change this as necessary.

Also expose the size of the preload window in
LazyListState. It should be possible for the
application layer to change this as necessary.
@swankjesse swankjesse requested review from veyndan and dellisd December 6, 2023 14:58
@@ -59,6 +61,12 @@ public open class LazyListState {
public var lastIndex: Int by mutableStateOf(0)
private set

/** How many items to load in anticipation of scrolling up. */
public var preloadBeforeItemCount: Int by mutableStateOf(DEFAULT_PRELOAD_ITEM_COUNT)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

Copy link
Collaborator

@dellisd dellisd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@swankjesse swankjesse merged commit 467b0db into trunk Dec 6, 2023
8 checks passed
@swankjesse swankjesse deleted the jwilson.1206.compose_count_counts branch December 6, 2023 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants