does any1 know how to use the new Api LazyLayoutPi...
# compose
m
does any1 know how to use the new Api LazyLayoutPinnableItem ?
i want to use this functionality, but there is hardly any doc
apparently, all you need is this inside your item block:
Copy code
val pinnableContainer = LocalPinnableContainer.current
DisposableEffect(pinnableContainer) {
    val handle = pinnableContainer?.pin()
    onDispose {
        handle?.release()
    }
}
And it should not recompose anymore when scrolling
context: I have a screen with a complex chart as a header of a lazylist. I don’t want it to recompose everytime the scroll goes up and down. This API solves that!