Android Compose, how to 'Observe' ScalingLazyColumn

Hi,

New to Kotlin/Android/Compose dev, trying to get my head around state changes.

I have a ScalingLazyColumn , and hold the state like this:

val listState = rememberScalingLazyListState(
initialCenterItemIndex = 0
)

How do I wire up an Event that will fire when listState.centerItemIndex changes ?

I’ve read lots but can’t seem to work it out.

I believe it may need to be ‘observed’, in order for it to re-compose ?

I’m looking for something like an ‘onChange()’ event or similar ?

My ScalingLazyList contains a list of items, and I want an item to change when it becomes the ‘centerItemIndex’.
How do I achieve this ?

Does the item have to ‘listen’ to changes on listState ?

Thanks,
Richard.