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

Lazy components revamping #109

Merged
merged 6 commits into from
Sep 4, 2023

Conversation

fscarponi
Copy link
Collaborator

@fscarponi fscarponi commented Sep 4, 2023

removed all element data from the state

  • now SelectableLazyState old only the keys of the elements (gathered once) =
  • TreeState, old the ordered list of nodes with their depth
  • element selection can be handled via callback function or via state (selected keys)

this new implementation solved long list issue ( resolve #106 ), and items are not more focusable by default ( resolve #81 )

Import statements were simplified and consolidated in the ChipsAndTree.kt file for cleaner, easier-to-read code. Function parameters order was rearranged in LazyTree function and a new parameter of initialNodeStatus was introduced to control the initial state of tree nodes in BasicLazyTree. This change provides flexibility for users to specify the loading state of nodes in the tree at init time.
@fscarponi fscarponi requested a review from rock3r September 4, 2023 10:20
@fscarponi fscarponi enabled auto-merge (squash) September 4, 2023 15:24
@fscarponi fscarponi merged commit 15c8798 into main Sep 4, 2023
@fscarponi fscarponi deleted the fabrizio.scarponi/new-selectable-lazy-column branch September 4, 2023 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants